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 IntegerExternalValidatorAttribute_Ctor()
        {
            Type configType = typeof(FakeComponent);
            string targetProperty = "Value";
            IntegerExternalValidatorAttribute attrib = new IntegerExternalValidatorAttribute(configType, targetProperty);
            Assert.Equal(Int32.MinValue, attrib.MinValue);
            Assert.Equal(Int32.MaxValue, attrib.MaxValue);
            Assert.IsType<IntegerValidator>(attrib.Validator);
            Assert.Same(configType, attrib.TargetComponentType);
            Assert.Equal(targetProperty, attrib.TargetPropertyName);
        }
[ Fact ] public void IntegerExternalValidatorAttribute_Ctor ( ) { Type configType = typeof ( FakeComponent ) ; string targetProperty = " " ; IntegerExternalValidatorAttribute attrib = new IntegerExternalValidatorAttribute ( configType , targetProperty ) ; Assert . Equal ( Int32 . MinValue , attrib . MinValue ) ; Assert . Equal ( Int32 . MaxValue , attrib . MaxValue ) ; Assert . IsType < IntegerValidator > ( 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 .