Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs =================================================================== diff -u -ra9f70d39c270923fa120d64dc1c9d9e1752fd42d -r7faf338152aa99f81c7169781c4971fe7b7bbfd3 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs (.../StabilityPointStructuresInputTest.cs) (revision a9f70d39c270923fa120d64dc1c9d9e1752fd42d) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresInputTest.cs (.../StabilityPointStructuresInputTest.cs) (revision 7faf338152aa99f81c7169781c4971fe7b7bbfd3) @@ -63,10 +63,10 @@ StandardDeviation = (RoundedDouble) 0.2 }; - var expectedFlowVelocityStructureClosable = new NormalDistribution(2) + var expectedFlowVelocityStructureClosable = new VariationCoefficientNormalDistribution(2) { Mean = RoundedDouble.NaN, - StandardDeviation = RoundedDouble.NaN + CoefficientOfVariation = RoundedDouble.NaN }; var expectedLevelCrestStructure = new NormalDistribution(2) @@ -286,10 +286,10 @@ StandardDeviation = RoundedDouble.NaN }; - var expectedFlowVelocityStructureClosable = new NormalDistribution(2) + var expectedFlowVelocityStructureClosable = new VariationCoefficientNormalDistribution(2) { Mean = RoundedDouble.NaN, - StandardDeviation = RoundedDouble.NaN + CoefficientOfVariation = RoundedDouble.NaN }; DistributionAssert.AreEqual(expectedLevelCrestStructure, input.LevelCrestStructure); @@ -455,22 +455,22 @@ var random = new Random(22); var input = new StabilityPointStructuresInput(); var mean = (RoundedDouble) (0.01 + random.NextDouble()); - var standardDeviation = (RoundedDouble) (0.01 + random.NextDouble()); - var distributionToSet = new NormalDistribution(5) + var coefficientOfVariation = (RoundedDouble) (0.01 + random.NextDouble()); + var expectedDistribution = new VariationCoefficientNormalDistribution(2) { Mean = mean, - StandardDeviation = standardDeviation + CoefficientOfVariation = coefficientOfVariation }; + var distributionToSet = new VariationCoefficientNormalDistribution(5) + { + Mean = mean, + CoefficientOfVariation = coefficientOfVariation + }; // Call input.FlowVelocityStructureClosable = distributionToSet; // Assert - var expectedDistribution = new NormalDistribution(2) - { - Mean = mean, - StandardDeviation = standardDeviation - }; AssertDistributionCorrectlySet(input.FlowVelocityStructureClosable, distributionToSet, expectedDistribution); }