src/GenFx.Components.Tests/ListStartingLengthValidatorTest.cs
/// <summary>
/// Tests that the <see cref="ListStartingLengthValidator.IsValid"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void ListStartingLengthValidator_IsValid()
        {
            ListStartingLengthValidator validator = new ListStartingLengthValidator();
            BinaryStringEntity entity = new BinaryStringEntity
            {
                MinimumStartingLength = 5,
                MaximumStartingLength = 6
            };
            bool result = validator.IsValid(entity, out string errorMessage);
            Assert.True(result);
            Assert.Null(errorMessage);
            entity = new BinaryStringEntity
            {
                MinimumStartingLength = 6,
                MaximumStartingLength = 5
            };
            result = validator.IsValid(entity, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
        }
[ Fact ] public void ListStartingLengthValidator_IsValid ( ) { ListStartingLengthValidator validator = new ListStartingLengthValidator ( ) ; BinaryStringEntity entity = new BinaryStringEntity { MinimumStartingLength = 5 , MaximumStartingLength = 6 } ; bool result = validator . IsValid ( entity , out string errorMessage ) ; Assert . True ( result ) ; Assert . Null ( errorMessage ) ; entity = new BinaryStringEntity { MinimumStartingLength = 6 , MaximumStartingLength = 5 } ; result = validator . IsValid ( entity , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .