src/GenFx.Tests/GeneticComponentExtensionsTest.cs
/// <summary>
/// Tests that an exception is thrown a null value is returned from <see cref="GeneticComponent.CreateNew"/>.
/// </summary>
Tests that an exception is thrown a null value is returned from .
Tests that an exception is thrown a null value is returned from .
[Fact]
        public void GeneticComponentExtensions_CreateNewAndInitialize_NullCreateNewResult()
        {
            TestComponentWithCustomizableCreateNew component = new TestComponentWithCustomizableCreateNew
            {
                CreateNewReturnValue = null
            };
            Assert.Throws<InvalidOperationException>(() => GeneticComponentExtensions.CreateNewAndInitialize(component));
        }
[ Fact ] public void GeneticComponentExtensions_CreateNewAndInitialize_NullCreateNewResult ( ) { TestComponentWithCustomizableCreateNew component = new TestComponentWithCustomizableCreateNew { CreateNewReturnValue = null } ; Assert . Throws < InvalidOperationException > ( ( ) => GeneticComponentExtensions . CreateNewAndInitialize ( component ) ) ; }
Tests that an exception is thrown a null value is returned from .
Tests that an exception is thrown a null value is returned from .