src/GenFx.Components.Tests/BooleanValidatorTest.cs
/// <summary>
/// Tests that the <see cref="BooleanValidator.IsValid"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void BooleanValidator_IsValid()
        {
            BooleanValidator validator = new BooleanValidator(false);
            bool result = validator.IsValid(true, "test", this, out string errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
            result = validator.IsValid("false", "test", this, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
            result = validator.IsValid(false, "test", this, out errorMessage);
            Assert.True(result);
            Assert.Null(errorMessage);
        }
[ Fact ] public void BooleanValidator_IsValid ( ) { BooleanValidator validator = new BooleanValidator ( false ) ; bool result = validator . IsValid ( true , " " , this , out string errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; result = validator . IsValid ( " " , " " , this , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; result = validator . IsValid ( false , " " , this , out errorMessage ) ; Assert . True ( result ) ; Assert . Null ( errorMessage ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .