src/GenFx.Tests/CustomExternalPropertyValidatorAttributeTest.cs
/// <summary>
/// Tests that an exception is thrown when an invalid component type is passed to the constructor.
/// </summary>
Tests that an exception is thrown when an invalid component type is passed to the constructor.
Tests that an exception is thrown when an invalid component type is passed to the constructor .
[Fact]
        public void CustomComponentValidatorAttribute_Ctor_InvalidComponentType()
        {
            Assert.Throws<ArgumentException>(() => new CustomExternalPropertyValidatorAttribute(typeof(int), nameof(CustomComponent.MyProperty), typeof(CustomValidator)));
        }
[ Fact ] public void CustomComponentValidatorAttribute_Ctor_InvalidComponentType ( ) { Assert . Throws < ArgumentException > ( ( ) => new CustomExternalPropertyValidatorAttribute ( typeof ( int ) , nameof ( CustomComponent . MyProperty ) , typeof ( CustomValidator ) ) ) ; }
Tests that an exception is thrown when an invalid component type is passed to the constructor.
Tests that an exception is thrown when an invalid component type is passed to the constructor .