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