src/GenFx.Components.Tests/IntegerListEntityTest.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 IntegerListEntity_Initialize()
        {
            RandomNumberService.Instance = new TestRandomUtil();
            GeneticAlgorithm algorithm = GetAlgorithm(4);
            IntegerListEntity entity = new TestIntegerListEntity { MinimumStartingLength = 4, MaximumStartingLength = 4 };
            entity.Initialize(algorithm);
            Assert.Equal("1, 2, 3, 4", entity.Representation);
        }
[ Fact ] public void IntegerListEntity_Initialize ( ) { RandomNumberService . Instance = new TestRandomUtil ( ) ; GeneticAlgorithm algorithm = GetAlgorithm ( 4 ) ; IntegerListEntity entity = new TestIntegerListEntity { MinimumStartingLength = 4 , MaximumStartingLength = 4 } ; entity . Initialize ( algorithm ) ; Assert . Equal ( " " , entity . Representation ) ; }
Tests that the Initialize method works correctly.
Tests that the Initialize method works correctly .