src/GenFx.Tests/GeneticComponentExtensionsTest.cs
/// <summary>
/// Tests that an exception is thrown when a component with misconfigured configuration property is passed to <see cref="GeneticComponentExtensions.CopyConfigurationStateTo"/>.
/// </summary>
Tests that an exception is thrown when a component with misconfigured configuration property is passed to .
Tests that an exception is thrown when a component with misconfigured configuration property is passed to .
[Fact]
        public void GeneticComponentExtensions_CopyConfigurationStateTo_MisconfiguredConfigProperty()
        {
            Assert.Throws<InvalidOperationException>(() => GeneticComponentExtensions.CopyConfigurationStateTo(new MisconfiguredTestComponent(), new MisconfiguredTestComponent()));
            Assert.Throws<InvalidOperationException>(() => GeneticComponentExtensions.CopyConfigurationStateTo(new MisconfiguredTest2Component(), new MisconfiguredTest2Component()));
        }
[ Fact ] public void GeneticComponentExtensions_CopyConfigurationStateTo_MisconfiguredConfigProperty ( ) { Assert . Throws < InvalidOperationException > ( ( ) => GeneticComponentExtensions . CopyConfigurationStateTo ( new MisconfiguredTestComponent ( ) , new MisconfiguredTestComponent ( ) ) ) ; Assert . Throws < InvalidOperationException > ( ( ) => GeneticComponentExtensions . CopyConfigurationStateTo ( new MisconfiguredTest2Component ( ) , new MisconfiguredTest2Component ( ) ) ) ; }
Tests that an exception is thrown when a component with misconfigured configuration property is passed to .
Tests that an exception is thrown when a component with misconfigured configuration property is passed to .