src/GenFx.Tests/GeneticAlgorithmTest.cs
/// <summary>
/// Tests that an exception is thrown when null parents are passed to <see cref="GeneticAlgorithm.ApplyCrossover"/>.
/// </summary>
Tests that an exception is thrown when null parents are passed to .
Tests that an exception is thrown when null parents are passed to .
[Fact]
        public void GeneticAlgorithm_ApplyCrossover_NullParents()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm();
            Assert.Throws<ArgumentNullException>(() => algorithm.TestApplyCrossover(new MockPopulation(), null));
        }
[ Fact ] public void GeneticAlgorithm_ApplyCrossover_NullParents ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm ( ) ; Assert . Throws < ArgumentNullException > ( ( ) => algorithm . TestApplyCrossover ( new MockPopulation ( ) , null ) ) ; }
Tests that an exception is thrown when null parents are passed to .
Tests that an exception is thrown when null parents are passed to .