src/GenFx.Tests/SelectionOperatorTest.cs
/// <summary>
/// Tests that an exception is thrown when a null population is passed.
/// </summary>
Tests that an exception is thrown when a null population is passed.
Tests that an exception is thrown when a null population is passed .
[Fact]
        public void SelectionOperator_Select_NullPopulation()
        {
            GeneticAlgorithm algorithm = GetAlgorithm();
            MockSelectionOperator op = new MockSelectionOperator();
            op.Initialize(algorithm);
            Assert.Throws<ArgumentNullException>(() => op.SelectEntities(1, null));
        }
[ Fact ] public void SelectionOperator_Select_NullPopulation ( ) { GeneticAlgorithm algorithm = GetAlgorithm ( ) ; MockSelectionOperator op = new MockSelectionOperator ( ) ; op . Initialize ( algorithm ) ; Assert . Throws < ArgumentNullException > ( ( ) => op . SelectEntities ( 1 , null ) ) ; }
Tests that an exception is thrown when a null population is passed.
Tests that an exception is thrown when a null population is passed .