src/GenFx.Components.Tests/IntegerListEntityTest.cs
/// <summary>
/// Tests that the Length property works correctly.
///</summary>
Tests that the Length property works correctly.
Tests that the Length property works correctly .
[Fact]
        public void IntegerListEntity_Length()
        {
            int length = 50;
            GeneticAlgorithm algorithm = GetAlgorithm(length);
            IntegerListEntity entity = new TestIntegerListEntity { MinimumStartingLength = length, MaximumStartingLength = length };
            entity.Initialize(algorithm);
            Assert.Equal(length, entity.Length);
            entity.Length = length;
            Assert.Equal(length, entity.Length);
        }
[ Fact ] public void IntegerListEntity_Length ( ) { int length = 50 ; GeneticAlgorithm algorithm = GetAlgorithm ( length ) ; IntegerListEntity entity = new TestIntegerListEntity { MinimumStartingLength = length , MaximumStartingLength = length } ; entity . Initialize ( algorithm ) ; Assert . Equal ( length , entity . Length ) ; entity . Length = length ; Assert . Equal ( length , entity . Length ) ; }
Tests that the Length property works correctly.
Tests that the Length property works correctly .