src/GenFx.Tests/RequiredExternalValidatorAttributeTest.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 RequiredExternalValidatorAttribute_Ctor()
        {
            RequiredExternalValidatorAttribute attrib =
                new RequiredExternalValidatorAttribute(typeof(CustomComponent), nameof(CustomComponent.MyProperty));
            Assert.Equal(typeof(CustomComponent), attrib.TargetComponentType);
            Assert.Equal(nameof(CustomComponent.MyProperty), attrib.TargetPropertyName);
            Assert.IsType<RequiredValidator>(attrib.Validator);
        }
[ Fact ] public void RequiredExternalValidatorAttribute_Ctor ( ) { RequiredExternalValidatorAttribute attrib = new RequiredExternalValidatorAttribute ( typeof ( CustomComponent ) , nameof ( CustomComponent . MyProperty ) ) ; Assert . Equal ( typeof ( CustomComponent ) , attrib . TargetComponentType ) ; Assert . Equal ( nameof ( CustomComponent . MyProperty ) , attrib . TargetPropertyName ) ; Assert . IsType < RequiredValidator > ( attrib . Validator ) ; }
Tests that the constructor initializes the state correctly.
Tests that the constructor initializes the state correctly .