src/GenFx.Components.Tests/FitnessProportionateSelectionOperatorTest.cs
/// <summary>
/// Tests that an exception is thrown when passing a null population to <see cref="FitnessProportionateSelectionOperator.SelectEntitiesFromPopulation"/>.
/// </summary>
Tests that an exception is thrown when passing a null population to .
Tests that an exception is thrown when passing a null population to .
[Fact]
        public void FitnessProportionateSelectionOperator_SelectEntitiesFromPopulation_NullPopulation()
        {
            FitnessProportionateSelectionOperator op = new FitnessProportionateSelectionOperator();
            PrivateObject accessor = new PrivateObject(op);
            Assert.Throws<ArgumentNullException>(() => accessor.Invoke("SelectEntitiesFromPopulation", (int)0, (Population)null));
        }
[ Fact ] public void FitnessProportionateSelectionOperator_SelectEntitiesFromPopulation_NullPopulation ( ) { FitnessProportionateSelectionOperator op = new FitnessProportionateSelectionOperator ( ) ; PrivateObject accessor = new PrivateObject ( op ) ; Assert . Throws < ArgumentNullException > ( ( ) => accessor . Invoke ( " " , ( int ) 0 , ( Population ) null ) ) ; }
Tests that an exception is thrown when passing a null population to .
Tests that an exception is thrown when passing a null population to .