src/GenFx.Tests/RequiredComponentTypeValidatorTest.cs
/// <summary>
/// Tests that the <see cref="RequiredComponentTypeValidator.IsEquivalentType"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void RequiredComponentTypeValidator_IsEquivalentType()
        {
            CustomValidator validator = new CustomValidator(typeof(MockEntity), typeof(GeneticEntity));
            bool result = validator.TestIsEquivalentType(new DerivedMockEntity());
            Assert.True(result);
            result = validator.TestIsEquivalentType(new MockEntity2());
            Assert.False(result);
            result = validator.TestIsEquivalentType(null);
            Assert.False(result);
        }
[ Fact ] public void RequiredComponentTypeValidator_IsEquivalentType ( ) { CustomValidator validator = new CustomValidator ( typeof ( MockEntity ) , typeof ( GeneticEntity ) ) ; bool result = validator . TestIsEquivalentType ( new DerivedMockEntity ( ) ) ; Assert . True ( result ) ; result = validator . TestIsEquivalentType ( new MockEntity2 ( ) ) ; Assert . False ( result ) ; result = validator . TestIsEquivalentType ( null ) ; Assert . False ( result ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .