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