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 DoubleExternalValidatorAttribute_Ctor()
        {
            Type configType = typeof(FakeComponent);
            string targetProperty = "Value";
            DoubleExternalValidatorAttribute attrib = new DoubleExternalValidatorAttribute(configType, targetProperty);
            Assert.Equal(Double.MinValue, attrib.MinValue);
            Assert.Equal(Double.MaxValue, attrib.MaxValue);
            Assert.IsType<DoubleValidator>(attrib.Validator);
            Assert.Same(configType, attrib.TargetComponentType);
            Assert.Equal(targetProperty, attrib.TargetPropertyName);
        }
[ Fact ] public void DoubleExternalValidatorAttribute_Ctor ( ) { Type configType = typeof ( FakeComponent ) ; string targetProperty = " " ; DoubleExternalValidatorAttribute attrib = new DoubleExternalValidatorAttribute ( configType , targetProperty ) ; Assert . Equal ( Double . MinValue , attrib . MinValue ) ; Assert . Equal ( Double . MaxValue , attrib . MaxValue ) ; Assert . IsType < DoubleValidator > ( attrib . Validator ) ; Assert . Same ( configType , attrib . TargetComponentType ) ; Assert . Equal ( targetProperty , attrib . TargetPropertyName ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .