src/GenFx.Tests/CustomExternalComponentValidatorAttributeTest.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 CustomComponentValidatorAttribute_Ctor_ParameterizedCtor()
        {
            CustomExternalComponentValidatorAttribute attrib =
                new CustomExternalComponentValidatorAttribute(typeof(CustomComponent), typeof(CustomValidator2), 1, "test");
            Assert.Equal(typeof(CustomComponent), attrib.TargetComponentType);
            Assert.Equal(typeof(CustomValidator2), attrib.ValidatorType);
            Assert.IsType<CustomValidator2>(attrib.Validator);
            Assert.Equal(new object[] { 1, "test" }, attrib.ValidatorConstructorArguments);
        }
[ Fact ] public void CustomComponentValidatorAttribute_Ctor_ParameterizedCtor ( ) { CustomExternalComponentValidatorAttribute attrib = new CustomExternalComponentValidatorAttribute ( typeof ( CustomComponent ) , typeof ( CustomValidator2 ) , 1 , " " ) ; Assert . Equal ( typeof ( CustomComponent ) , attrib . TargetComponentType ) ; Assert . Equal ( typeof ( CustomValidator2 ) , attrib . ValidatorType ) ; Assert . IsType < CustomValidator2 > ( attrib . Validator ) ; Assert . Equal ( new object [ ] { 1 , " " } , attrib . ValidatorConstructorArguments ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .