src/GenFx.Tests/IntegerValidatorTest.cs
/// <summary>
/// Tests that an exception is thrown when <see cref="IntegerValidator.IsValid"/> is called when min and max are the same.
/// </summary>
Tests that an exception is thrown when  is called when min and max are the same.
Tests that an exception is thrown when is called when min and max are the same .
[Fact]
        public void IntegerValidator_IsValid_SameMinMax()
        {
            IntegerValidator validator = new IntegerValidator(5, 5);
            string errorMessage;
            bool result = validator.IsValid(1, "foo", this, out errorMessage);
            Assert.False(result);
            Assert.NotNull(errorMessage);
        }
[ Fact ] public void IntegerValidator_IsValid_SameMinMax ( ) { IntegerValidator validator = new IntegerValidator ( 5 , 5 ) ; string errorMessage ; bool result = validator . IsValid ( 1 , " " , this , out errorMessage ) ; Assert . False ( result ) ; Assert . NotNull ( errorMessage ) ; }
Tests that an exception is thrown when  is called when min and max are the same.
Tests that an exception is thrown when is called when min and max are the same .