src/GenFx.Components.Tests/SteadyStateGeneticAlgorithmTest.cs
/// <summary>
/// Tests that the CreateNextGeneration method works correctly.
/// </summary>
Tests that the CreateNextGeneration method works correctly.
Tests that the CreateNextGeneration method works correctly .
[Fact]
        public async Task SteadyStateGeneticAlgorithm_CreateNextGeneration_NullPopulation()
        {
            SteadyStateGeneticAlgorithm algorithm = new SteadyStateGeneticAlgorithm();
            PrivateObject accessor = new PrivateObject(algorithm);
            await Assert.ThrowsAsync<ArgumentNullException>(() => (Task)accessor.Invoke("CreateNextGenerationAsync", (Population)null));
        }
[ Fact ] public async Task SteadyStateGeneticAlgorithm_CreateNextGeneration_NullPopulation ( ) { SteadyStateGeneticAlgorithm algorithm = new SteadyStateGeneticAlgorithm ( ) ; PrivateObject accessor = new PrivateObject ( algorithm ) ; await Assert . ThrowsAsync < ArgumentNullException > ( ( ) => ( Task ) accessor . Invoke ( " " , ( Population ) null ) ) ; }
Tests that the CreateNextGeneration method works correctly.
Tests that the CreateNextGeneration method works correctly .