src/GenFx.Tests/GeneticAlgorithmTest.cs
/// <summary>
/// Tests that the ValidateRequiredComponents method works correctly.
/// </summary>
Tests that the ValidateRequiredComponents method works correctly.
Tests that the ValidateRequiredComponents method works correctly .
[Fact]
        public void GeneticAlgorithm_ValidateConfiguration_ValidTerminator()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm
            {
                SelectionOperator = new MockSelectionOperator(),
                FitnessEvaluator = new MockFitnessEvaluator(),
                GeneticEntitySeed = new MockEntity(),
                PopulationSeed = new TerminatorDependentPopulation(),
                Terminator = new MockTerminator()
            };
            this.ValidateComponent(algorithm.PopulationSeed, algorithm, false);
        }
[ Fact ] public void GeneticAlgorithm_ValidateConfiguration_ValidTerminator ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm { SelectionOperator = new MockSelectionOperator ( ) , FitnessEvaluator = new MockFitnessEvaluator ( ) , GeneticEntitySeed = new MockEntity ( ) , PopulationSeed = new TerminatorDependentPopulation ( ) , Terminator = new MockTerminator ( ) } ; this . ValidateComponent ( algorithm . PopulationSeed , algorithm , false ) ; }
Tests that the ValidateRequiredComponents method works correctly.
Tests that the ValidateRequiredComponents method works correctly .