src/GenFx.Tests/SettingValidatorAttributeTest.cs
/// <summary>
/// Tests that the Validator property works correctly.
/// </summary>
Tests that the Validator property works correctly.
Tests that the Validator property works correctly .
[Fact]
        public void ComponentValidatorAttribute_Validator()
        {
            TestConfigurationValidatorAttribute attrib = new TestConfigurationValidatorAttribute();
            PropertyValidator validator = attrib.Validator;
            Assert.NotNull(validator);
            Assert.IsType<TestConfigurationValidator>(validator);
            PropertyValidator validator2 = attrib.Validator;
            Assert.Same(validator, validator2);
        }
[ Fact ] public void ComponentValidatorAttribute_Validator ( ) { TestConfigurationValidatorAttribute attrib = new TestConfigurationValidatorAttribute ( ) ; PropertyValidator validator = attrib . Validator ; Assert . NotNull ( validator ) ; Assert . IsType < TestConfigurationValidator > ( validator ) ; PropertyValidator validator2 = attrib . Validator ; Assert . Same ( validator , validator2 ) ; }
Tests that the Validator property works correctly.
Tests that the Validator property works correctly .