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