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_ValidFitnessEvaluator()
        {
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm
            {
                SelectionOperator = new FitnessEvaluatorDependentSelectionOperator(),
                GeneticEntitySeed = new MockEntity(),
                PopulationSeed = new MockPopulation(),
                FitnessEvaluator = new MockFitnessEvaluator()
            };
            this.ValidateComponent(algorithm.SelectionOperator, algorithm, false);
        }
[ Fact ] public void GeneticAlgorithm_ValidateConfiguration_ValidFitnessEvaluator ( ) { MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm { SelectionOperator = new FitnessEvaluatorDependentSelectionOperator ( ) , GeneticEntitySeed = new MockEntity ( ) , PopulationSeed = new MockPopulation ( ) , FitnessEvaluator = new MockFitnessEvaluator ( ) } ; this . ValidateComponent ( algorithm . SelectionOperator , algorithm , false ) ; }
Tests that the ValidateRequiredComponents method works correctly.
Tests that the ValidateRequiredComponents method works correctly .