src/GenFx.Components.Tests/SteadyStateGeneticAlgorithmTest.cs
/// <summary>
/// Tests that an exception is thrown when an invalid value is used for the PopulationReplacement setting.
/// </summary>
Tests that an exception is thrown when an invalid value is used for the PopulationReplacement setting.
Tests that an exception is thrown when an invalid value is used for the PopulationReplacement setting .
[Fact]
        public void SteadyStateGeneticAlgorithm_Initialize_InvalidPopulationReplacement2()
        {
            SteadyStateGeneticAlgorithm config = new SteadyStateGeneticAlgorithm();
            PopulationReplacementValue val = new PopulationReplacementValue(101, ReplacementValueKind.Percentage);
            Assert.Throws<ValidationException>(() => config.PopulationReplacementValue = val);
        }
[ Fact ] public void SteadyStateGeneticAlgorithm_Initialize_InvalidPopulationReplacement2 ( ) { SteadyStateGeneticAlgorithm config = new SteadyStateGeneticAlgorithm ( ) ; PopulationReplacementValue val = new PopulationReplacementValue ( 101 , ReplacementValueKind . Percentage ) ; Assert . Throws < ValidationException > ( ( ) => config . PopulationReplacementValue = val ) ; }
Tests that an exception is thrown when an invalid value is used for the PopulationReplacement setting.
Tests that an exception is thrown when an invalid value is used for the PopulationReplacement setting .