src/GenFx.Components.Tests/SimpleGeneticAlgorithmTest.cs
/// <summary>
/// Tests that the an exception is thrown when passing a null population to <see cref="SimpleGeneticAlgorithm.CreateNextGenerationAsync"/>.
/// </summary>
Tests that the an exception is thrown when passing a null population to .
Tests that the an exception is thrown when passing a null population to .
[Fact]
        public async Task SimpleGeneticAlgorithm_CreateNextGeneration_NullPopulation()
        {
            SimpleGeneticAlgorithm algorithm = new SimpleGeneticAlgorithm();
            PrivateObject accessor = new PrivateObject(algorithm);
            await Assert.ThrowsAsync<ArgumentNullException>(() => (Task)accessor.Invoke("CreateNextGenerationAsync", (Population)null));
        }
[ Fact ] public async Task SimpleGeneticAlgorithm_CreateNextGeneration_NullPopulation ( ) { SimpleGeneticAlgorithm algorithm = new SimpleGeneticAlgorithm ( ) ; PrivateObject accessor = new PrivateObject ( algorithm ) ; await Assert . ThrowsAsync < ArgumentNullException > ( ( ) => ( Task ) accessor . Invoke ( " " , ( Population ) null ) ) ; }
Tests that the an exception is thrown when passing a null population to .
Tests that the an exception is thrown when passing a null population to .