src/GenFx.Tests/GeneticEntityTest.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 void Entity_Initialize()
        {
            GeneticAlgorithm algorithm = new MockGeneticAlgorithm
            {
                PopulationSeed = new MockPopulation(),
                SelectionOperator = new MockSelectionOperator(),
                FitnessEvaluator = new MockFitnessEvaluator(),
                GeneticEntitySeed = new MockEntity()
            };
            MockEntity entity = new MockEntity();
            entity.Initialize(algorithm);
            Assert.Equal("11111", entity.Identifier);
        }
[ Fact ] public void Entity_Initialize ( ) { GeneticAlgorithm algorithm = new MockGeneticAlgorithm { PopulationSeed = new MockPopulation ( ) , SelectionOperator = new MockSelectionOperator ( ) , FitnessEvaluator = new MockFitnessEvaluator ( ) , GeneticEntitySeed = new MockEntity ( ) } ; MockEntity entity = new MockEntity ( ) ; entity . Initialize ( algorithm ) ; Assert . Equal ( " " , entity . Identifier ) ; }
Tests that the Initialize method works correctly.
Tests that the Initialize method works correctly .