src/GenFx.Components.Tests/SigmaScalingStrategyTest.cs
/// <summary>
/// Tests that an exception is thrown when a null population is passed.
/// </summary>
Tests that an exception is thrown when a null population is passed.
Tests that an exception is thrown when a null population is passed .
[Fact]
        public void SigmaScalingStrategy_Scale_NullPopulation()
        {
            GeneticAlgorithm algorithm = GetAlgorithm(10);
            SigmaScalingStrategy op = new SigmaScalingStrategy();
            op.Initialize(algorithm);
            Assert.Throws<ArgumentNullException>(() => op.Scale(null));
        }
[ Fact ] public void SigmaScalingStrategy_Scale_NullPopulation ( ) { GeneticAlgorithm algorithm = GetAlgorithm ( 10 ) ; SigmaScalingStrategy op = new SigmaScalingStrategy ( ) ; op . Initialize ( algorithm ) ; Assert . Throws < ArgumentNullException > ( ( ) => op . Scale ( null ) ) ; }
Tests that an exception is thrown when a null population is passed.
Tests that an exception is thrown when a null population is passed .