src/GenFx.Tests/ElitismStrategyTest.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 ElitismStrategy_GetElitistGeneticEntities_NullPopulation()
        {
            MockElitismStrategy strategy = new MockElitismStrategy();
            strategy.Initialize(GetGeneticAlgorithm(.1));
            Assert.Throws<ArgumentNullException>(() => strategy.GetEliteEntities(null));
        }
[ Fact ] public void ElitismStrategy_GetElitistGeneticEntities_NullPopulation ( ) { MockElitismStrategy strategy = new MockElitismStrategy ( ) ; strategy . Initialize ( GetGeneticAlgorithm ( .1 ) ) ; Assert . Throws < ArgumentNullException > ( ( ) => strategy . GetEliteEntities ( 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 .