src/GenFx.Tests/RequiredComponentTypeValidatorTest.cs
/// <summary>
/// Test that an exception is thrown when passing a null component to the <see cref="RequiredComponentTypeValidator.IsValid"/> method.
/// </summary>
Test that an exception is thrown when passing a null component to the  method.
Test that an exception is thrown when passing a null component to the method .
[Fact]
        public void RequiredComponentTypeValidator_IsValid_NullComponent()
        {
            CustomValidator validator = new CustomValidator(typeof(MockEntity), typeof(GeneticEntity));
            Assert.Throws<ArgumentNullException>(() => validator.IsValid(null, out string errorMessage));
        }
[ Fact ] public void RequiredComponentTypeValidator_IsValid_NullComponent ( ) { CustomValidator validator = new CustomValidator ( typeof ( MockEntity ) , typeof ( GeneticEntity ) ) ; Assert . Throws < ArgumentNullException > ( ( ) => validator . IsValid ( null , out string errorMessage ) ) ; }
Test that an exception is thrown when passing a null component to the  method.
Test that an exception is thrown when passing a null component to the method .