src/GenFx.Tests/CustomExternalPropertyValidatorAttributeTest.cs
/// <summary>
/// Tests that an exception is thrown approriately the validator constructor throws an exception.
/// </summary>
Tests that an exception is thrown approriately the validator constructor throws an exception.
Tests that an exception is thrown approriately the validator constructor throws an exception .
[Fact]
        public void CustomComponentValidatorAttribute_Validator_ExceptionOnValidatorCtor()
        {
            CustomExternalPropertyValidatorAttribute attrib = new CustomExternalPropertyValidatorAttribute(typeof(CustomComponent), nameof(CustomComponent.MyProperty), typeof(CustomValidator3));
            Assert.Throws<FormatException>(() => { object x = attrib.Validator; });
        }
[ Fact ] public void CustomComponentValidatorAttribute_Validator_ExceptionOnValidatorCtor ( ) { CustomExternalPropertyValidatorAttribute attrib = new CustomExternalPropertyValidatorAttribute ( typeof ( CustomComponent ) , nameof ( CustomComponent . MyProperty ) , typeof ( CustomValidator3 ) ) ; Assert . Throws < FormatException > ( ( ) => { object x = attrib . Validator ; } ) ; }
Tests that an exception is thrown approriately the validator constructor throws an exception.
Tests that an exception is thrown approriately the validator constructor throws an exception .