src/GenFx.Tests/GeneticAlgorithmTest.cs
/// <summary>
/// Tests that an exception is thrown when a null population is passed to <see cref="GeneticAlgorithm.ApplyCrossover"/>.
/// </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_ApplyCrossover_NullPopulation()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm();
            Assert.Throws<ArgumentNullException>(() => algorithm.TestApplyCrossover(null, new List<GeneticEntity>()));
        }
[ Fact ] public void GeneticAlgorithm_ApplyCrossover_NullPopulation ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm ( ) ; Assert . Throws < ArgumentNullException > ( ( ) => algorithm . TestApplyCrossover ( null , new List < GeneticEntity > ( ) ) ) ; }
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 .