src/GenFx.Tests/SettingValidatorAttributeTest.cs
/// <summary>
/// Tests that the constructor initializes the state correctly.
/// </summary>
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .
[Fact]
        public void DoubleValidatorAttribute_Ctor()
        {
            DoubleValidatorAttribute attrib = new DoubleValidatorAttribute();
            Assert.Equal(Double.MinValue, attrib.MinValue);
            Assert.Equal(Double.MaxValue, attrib.MaxValue);
            Assert.True(attrib.IsMinValueInclusive);
            Assert.True(attrib.IsMinValueInclusive);
            Assert.True(attrib.IsMaxValueInclusive);
            Assert.IsType<DoubleValidator>(attrib.Validator);
        }
[ Fact ] public void DoubleValidatorAttribute_Ctor ( ) { DoubleValidatorAttribute attrib = new DoubleValidatorAttribute ( ) ; Assert . Equal ( Double . MinValue , attrib . MinValue ) ; Assert . Equal ( Double . MaxValue , attrib . MaxValue ) ; Assert . True ( attrib . IsMinValueInclusive ) ; Assert . True ( attrib . IsMinValueInclusive ) ; Assert . True ( attrib . IsMaxValueInclusive ) ; Assert . IsType < DoubleValidator > ( attrib . Validator ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .