src/GenFx.Components.Tests/BinaryStringEntityTest.cs
/// <summary>
/// Tests that the length can be expanded to contain more items.
/// </summary>
Tests that the length can be expanded to contain more items.
Tests that the length can be expanded to contain more items .
[Fact]
        public void BinaryStringEntity_SetLengthToExpand()
        {
            BinaryStringEntity entity = new BinaryStringEntity
            {
                MinimumStartingLength = 2,
                MaximumStartingLength = 2,
            };
            entity.Initialize(new MockGeneticAlgorithm());
            Assert.Equal(2, entity.Length);
            entity.Length = 4;
            Assert.Equal(4, entity.Length);
            Assert.False(entity[2]);
            Assert.False(entity[3]);
        }
[ Fact ] public void BinaryStringEntity_SetLengthToExpand ( ) { BinaryStringEntity entity = new BinaryStringEntity { MinimumStartingLength = 2 , MaximumStartingLength = 2 , } ; entity . Initialize ( new MockGeneticAlgorithm ( ) ) ; Assert . Equal ( 2 , entity . Length ) ; entity . Length = 4 ; Assert . Equal ( 4 , entity . Length ) ; Assert . False ( entity [ 2 ] ) ; Assert . False ( entity [ 3 ] ) ; }
Tests that the length can be expanded to contain more items.
Tests that the length can be expanded to contain more items .