src/GenFx.Components.Tests/SingleNodeTreeCrossoverOperatorTest.cs
/// <summary>
/// Tests that an exception is thrown when passing null parents.
/// </summary>
Tests that an exception is thrown when passing null parents.
Tests that an exception is thrown when passing null parents .
[Fact]
        public void SingleNodeTreeCrossoverOperator_GenerateCrossover_NullParents()
        {
            SingleNodeTreeCrossoverOperator op = new SingleNodeTreeCrossoverOperator();
            PrivateObject accessor = new PrivateObject(op);
            Assert.Throws<ArgumentNullException>(() => accessor.Invoke("GenerateCrossover", (IList<GeneticEntity>)null));
        }
[ Fact ] public void SingleNodeTreeCrossoverOperator_GenerateCrossover_NullParents ( ) { SingleNodeTreeCrossoverOperator op = new SingleNodeTreeCrossoverOperator ( ) ; PrivateObject accessor = new PrivateObject ( op ) ; Assert . Throws < ArgumentNullException > ( ( ) => accessor . Invoke ( " " , ( IList < GeneticEntity > ) null ) ) ; }
Tests that an exception is thrown when passing null parents.
Tests that an exception is thrown when passing null parents .