src/GenFx.Tests/RequiredValidatorTest.cs
/// <summary>
/// Tests that an exception is thrown when passing a null or empty property name to <see cref="RequiredValidator.IsValid"/>.
/// </summary>
Tests that an exception is thrown when passing a null or empty property name to .
Tests that an exception is thrown when passing a null or empty property name to .
[Fact]
        public void RequiredValidator_IsValid_NullPropertyName()
        {
            RequiredValidator validator = new RequiredValidator();
            string errorMessage;
            Assert.Throws<ArgumentException>(() => validator.IsValid(2, null, this, out errorMessage));
            Assert.Throws<ArgumentException>(() => validator.IsValid(2, String.Empty, this, out errorMessage));
        }
[ Fact ] public void RequiredValidator_IsValid_NullPropertyName ( ) { RequiredValidator validator = new RequiredValidator ( ) ; string errorMessage ; Assert . Throws < ArgumentException > ( ( ) => validator . IsValid ( 2 , null , this , out errorMessage ) ) ; Assert . Throws < ArgumentException > ( ( ) => validator . IsValid ( 2 , String . Empty , this , out errorMessage ) ) ; }
Tests that an exception is thrown when passing a null or empty property name to .
Tests that an exception is thrown when passing a null or empty property name to .