src/GenFx.Tests/CustomExternalComponentValidatorAttributeTest.cs
/// <summary>
/// Tests that an exception is thrown when a null component type is passed to the constructor.
/// </summary>
Tests that an exception is thrown when a null component type is passed to the constructor.
Tests that an exception is thrown when a null component type is passed to the constructor .
[Fact]
        public void CustomComponentValidatorAttribute_Ctor_NullComponentType()
        {
            Assert.Throws<ArgumentNullException>(() => new CustomExternalComponentValidatorAttribute(null, typeof(CustomValidator)));
            Assert.Throws<ArgumentNullException>(() => new CustomComponentValidatorAttribute(null, typeof(CustomValidator), 1, 2));
        }
[ Fact ] public void CustomComponentValidatorAttribute_Ctor_NullComponentType ( ) { Assert . Throws < ArgumentNullException > ( ( ) => new CustomExternalComponentValidatorAttribute ( null , typeof ( CustomValidator ) ) ) ; Assert . Throws < ArgumentNullException > ( ( ) => new CustomComponentValidatorAttribute ( null , typeof ( CustomValidator ) , 1 , 2 ) ) ; }
Tests that an exception is thrown when a null component type is passed to the constructor.
Tests that an exception is thrown when a null component type is passed to the constructor .