src/GenFx.Components.Tests/SinglePointCrossoverOperatorTest.cs
/// <summary>
/// Tests that no validation exception is thrown if the operator is used with an
/// algorithm that is configured with a <see cref="ListEntityBase"/>.
/// </summary>
Tests that no validation exception is thrown if the operator is used with an
algorithm that is configured with a .
Tests that no validation exception is thrown if the operator is used with an algorithm that is configured with a .
[Fact]
        public void SinglePointCrossoverOperator_Validation_WithListEntityBase()
        {
            SinglePointCrossoverOperator op = new SinglePointCrossoverOperator();
            MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm
            {
                GeneticEntitySeed = new IntegerListEntity()
            };
            op.Initialize(algorithm);
            op.Validate();
        }
[ Fact ] public void SinglePointCrossoverOperator_Validation_WithListEntityBase ( ) { SinglePointCrossoverOperator op = new SinglePointCrossoverOperator ( ) ; MockGeneticAlgorithm algorithm = new MockGeneticAlgorithm { GeneticEntitySeed = new IntegerListEntity ( ) } ; op . Initialize ( algorithm ) ; op . Validate ( ) ; }
Tests that no validation exception is thrown if the operator is used with an
algorithm that is configured with a .
Tests that no validation exception is thrown if the operator is used with an algorithm that is configured with a .