src/GenFx.Tests/GeneticAlgorithmTest.cs
/// <summary>
/// Tests that an exception is thrown when a null population is passed to <see cref="GeneticAlgorithm.ApplyElitism"/>.
/// </summary>
Tests that an exception is thrown when a null population is passed to .
Tests that an exception is thrown when a null population is passed to .
[Fact]
        public void GeneticAlgorithm_ApplyElitism_NullPopulation()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm();
            Assert.Throws<ArgumentNullException>(() => algorithm.TestApplyElitism(null));
        }
[ Fact ] public void GeneticAlgorithm_ApplyElitism_NullPopulation ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm ( ) ; Assert . Throws < ArgumentNullException > ( ( ) => algorithm . TestApplyElitism ( null ) ) ; }
Tests that an exception is thrown when a null population is passed to .
Tests that an exception is thrown when a null population is passed to .