src/GenFx.Tests/RequiredValidatorTest.cs
/// <summary>
/// Tests that the <see cref="RequiredValidator.IsValid"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void RequiredValidator_IsValid()
        {
            RequiredValidator validator = new RequiredValidator();
            bool result = validator.IsValid(2, "Foo", this, out string errorMessage);
            Assert.True(result);
            Assert.Null(errorMessage);
            result = validator.IsValid("", "Foo", this, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
            result = validator.IsValid(null, "Foo", this, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
        }
[ Fact ] public void RequiredValidator_IsValid ( ) { RequiredValidator validator = new RequiredValidator ( ) ; bool result = validator . IsValid ( 2 , " " , this , out string errorMessage ) ; Assert . True ( result ) ; Assert . Null ( errorMessage ) ; result = validator . IsValid ( " " , " " , this , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; result = validator . IsValid ( null , " " , this , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .