src/GenFx.Tests/GeneticAlgorithmTest.cs
/// <summary>
/// Tests that the Initialize method works correctly.
/// </summary>
Tests that the Initialize method works correctly.
Tests that the Initialize method works correctly .
[Fact]
        public async Task GeneticAlgorithm_Initialize_NoMutationOperatorType_Async()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm
            {
                CrossoverOperator = new MockCrossoverOperator(),
                ElitismStrategy = new MockElitismStrategy(),
                FitnessEvaluator = new MockFitnessEvaluator(),
                FitnessScalingStrategy = new MockFitnessScalingStrategy(),
                GeneticEntitySeed = new MockEntity(),
                PopulationSeed = new MockPopulation(),
                SelectionOperator = new MockSelectionOperator(),
                Terminator = new MockTerminator()
            };
            algorithm.Metrics.Add(new MockMetric());
            await TestInitializeAsync(algorithm);
        }
[ Fact ] public async Task GeneticAlgorithm_Initialize_NoMutationOperatorType_Async ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm { CrossoverOperator = new MockCrossoverOperator ( ) , ElitismStrategy = new MockElitismStrategy ( ) , FitnessEvaluator = new MockFitnessEvaluator ( ) , FitnessScalingStrategy = new MockFitnessScalingStrategy ( ) , GeneticEntitySeed = new MockEntity ( ) , PopulationSeed = new MockPopulation ( ) , SelectionOperator = new MockSelectionOperator ( ) , Terminator = new MockTerminator ( ) } ; algorithm . Metrics . Add ( new MockMetric ( ) ) ; await TestInitializeAsync ( algorithm ) ; }
Tests that the Initialize method works correctly.
Tests that the Initialize method works correctly .
//MutationOperator = new MockMutationOperator(),