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