src/GenFx.Tests/ElitismStrategyTest.cs
/// <summary>
/// Tests that an exception is thrown when an invalid value is used for the ElitistRatio setting.
/// </summary>
Tests that an exception is thrown when an invalid value is used for the ElitistRatio setting.
Tests that an exception is thrown when an invalid value is used for the ElitistRatio setting .
[Fact]
        public void ElitismStrategy_Ctor_InvalidSetting2()
        {
            MockElitismStrategy strategy = new MockElitismStrategy();
            Assert.Throws<ValidationException>(() => strategy.ElitistRatio = -1);
        }
[ Fact ] public void ElitismStrategy_Ctor_InvalidSetting2 ( ) { MockElitismStrategy strategy = new MockElitismStrategy ( ) ; Assert . Throws < ValidationException > ( ( ) => strategy . ElitistRatio = - 1 ) ; }
Tests that an exception is thrown when an invalid value is used for the ElitistRatio setting.
Tests that an exception is thrown when an invalid value is used for the ElitistRatio setting .