src/GenFx.Components.Tests/FitnessSharingScalingStrategyTest.cs
// <summary>
/// Tests that an exception is thrown when an invalid value is used for the cutoff setting.
/// </summary>
Tests that an exception is thrown when an invalid value is used for the cutoff setting.
Tests that an exception is thrown when an invalid value is used for the cutoff setting .
[Fact]
        public void FitnessSharingScalingStrategy_Ctor_InvalidCutoffSetting()
        {
            FakeFitnessSharingScalingStrategy config = new FakeFitnessSharingScalingStrategy
            {
                ScalingCurvature = 3
            };
            Assert.Throws<ValidationException>(() => config.ScalingDistanceCutoff = 0);
        }
[ Fact ] public void FitnessSharingScalingStrategy_Ctor_InvalidCutoffSetting ( ) { FakeFitnessSharingScalingStrategy config = new FakeFitnessSharingScalingStrategy { ScalingCurvature = 3 } ; Assert . Throws < ValidationException > ( ( ) => config . ScalingDistanceCutoff = 0 ) ; }
Tests that an exception is thrown when an invalid value is used for the cutoff setting.
Tests that an exception is thrown when an invalid value is used for the cutoff setting .