src/GenFx.Tests/CustomExternalPropertyValidatorAttributeTest.cs
/// <summary>
/// Tests that an exception is thrown when a null validator type is passed to the constructor.
/// </summary>
Tests that an exception is thrown when a null validator type is passed to the constructor.
Tests that an exception is thrown when a null validator type is passed to the constructor .
[Fact]
        public void CustomComponentValidatorAttribute_Ctor_NullValidatorType()
        {
            Assert.Throws<ArgumentNullException>(() => new CustomExternalPropertyValidatorAttribute(typeof(CustomComponent), "x", null));
            Assert.Throws<ArgumentNullException>(() => new CustomExternalPropertyValidatorAttribute(typeof(CustomComponent), "x", null, 1, 2));
        }
[ Fact ] public void CustomComponentValidatorAttribute_Ctor_NullValidatorType ( ) { Assert . Throws < ArgumentNullException > ( ( ) => new CustomExternalPropertyValidatorAttribute ( typeof ( CustomComponent ) , " " , null ) ) ; Assert . Throws < ArgumentNullException > ( ( ) => new CustomExternalPropertyValidatorAttribute ( typeof ( CustomComponent ) , " " , null , 1 , 2 ) ) ; }
Tests that an exception is thrown when a null validator type is passed to the constructor.
Tests that an exception is thrown when a null validator type is passed to the constructor .