src/GenFx.Tests/SettingValidatorAttributeTest.cs
/// <summary>
/// Tests that the Min/Max-Value properties work correctly.
/// </summary>
Tests that the Min/Max-Value properties work correctly.
Tests that the Min / Max - Value properties work correctly .
[Fact]
        public void DoubleValidatorAttribute_MinMax()
        {
            DoubleValidatorAttribute attrib = new DoubleValidatorAttribute
            {
                MinValue = 10,
                MaxValue = 20,
                IsMaxValueInclusive = false,
                IsMinValueInclusive = false
            };
            PrivateObject accessor = new PrivateObject(attrib.Validator);
            Assert.Equal(attrib.MinValue, accessor.GetField("minValue"));
            Assert.Equal(attrib.MaxValue, accessor.GetField("maxValue"));
            Assert.Equal(attrib.IsMinValueInclusive, accessor.GetField("isMinValueInclusive"));
            Assert.Equal(attrib.IsMaxValueInclusive, accessor.GetField("isMaxValueInclusive"));
        }
[ Fact ] public void DoubleValidatorAttribute_MinMax ( ) { DoubleValidatorAttribute attrib = new DoubleValidatorAttribute { MinValue = 10 , MaxValue = 20 , IsMaxValueInclusive = false , IsMinValueInclusive = false } ; PrivateObject accessor = new PrivateObject ( attrib . Validator ) ; Assert . Equal ( attrib . MinValue , accessor . GetField ( " " ) ) ; Assert . Equal ( attrib . MaxValue , accessor . GetField ( " " ) ) ; Assert . Equal ( attrib . IsMinValueInclusive , accessor . GetField ( " " ) ) ; Assert . Equal ( attrib . IsMaxValueInclusive , accessor . GetField ( " " ) ) ; }
Tests that the Min/Max-Value properties work correctly.
Tests that the Min / Max - Value properties work correctly .