src/GenFx.Tests/SelectionOperatorTest.cs
/// <summary>
/// Tests that an exception is thrown when the result of <see cref="SelectionOperator.SelectEntitiesFromPopulation"/>
/// is null while executing <see cref="SelectionOperator.SelectEntities"/>.
/// </summary>
Tests that an exception is thrown when the result of
is null while executing .
Tests that an exception is thrown when the result of is null while executing .
[Fact]
        public void SelectionOperator_SelectEntities_NullSelectionResult()
        {
            MockSelectionOperator2 op = new MockSelectionOperator2();
            MockPopulation population = new MockPopulation();
            population.Entities.Add(new MockEntity());
            Assert.Throws<InvalidOperationException>(() => op.SelectEntities(0, population));
        }
[ Fact ] public void SelectionOperator_SelectEntities_NullSelectionResult ( ) { MockSelectionOperator2 op = new MockSelectionOperator2 ( ) ; MockPopulation population = new MockPopulation ( ) ; population . Entities . Add ( new MockEntity ( ) ) ; Assert . Throws < InvalidOperationException > ( ( ) => op . SelectEntities ( 0 , population ) ) ; }
Tests that an exception is thrown when the result of
is null while executing .
Tests that an exception is thrown when the result of is null while executing .