Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresInputTest.cs =================================================================== diff -u -r2cac288356ca446c45385a83ebd1a032fb155283 -rf43bea6ea508df3cf621b39e9c163352d058c8ba --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresInputTest.cs (.../HeightStructuresInputTest.cs) (revision 2cac288356ca446c45385a83ebd1a032fb155283) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresInputTest.cs (.../HeightStructuresInputTest.cs) (revision f43bea6ea508df3cf621b39e9c163352d058c8ba) @@ -87,6 +87,7 @@ }; RoundedDouble expectedDeviationWaveDirection = input.DeviationWaveDirection; + NormalDistribution expectedModelFactorSuperCriticalFlow = input.ModelFactorSuperCriticalFlow; // Precondition AssertHeightStructureInput(structure, input); @@ -96,6 +97,7 @@ // Then AssertAreEqual(expectedDeviationWaveDirection, input.DeviationWaveDirection); + DistributionAssert.AreEqual(expectedModelFactorSuperCriticalFlow, input.ModelFactorSuperCriticalFlow); Assert.AreEqual(1.0, input.FailureProbabilityStructureWithErosion); var expectedLevelCrestStructure = new NormalDistribution(2) @@ -308,6 +310,35 @@ #endregion + #region Model factors + + [Test] + public void ModelFactorSuperCriticalFlow_Always_ExpectedValues() + { + // Setup + var random = new Random(22); + var input = new HeightStructuresInput(); + RoundedDouble mean = random.NextRoundedDouble(0.01, 1.0); + var expectedDistribution = new NormalDistribution(2) + { + Mean = mean, + StandardDeviation = input.ModelFactorSuperCriticalFlow.StandardDeviation + }; + var distributionToSet = new NormalDistribution(5) + { + Mean = mean, + StandardDeviation = random.NextRoundedDouble() + }; + + // Call + input.ModelFactorSuperCriticalFlow = distributionToSet; + + // Assert + DistributionTestHelper.AssertDistributionCorrectlySet(input.ModelFactorSuperCriticalFlow, distributionToSet, expectedDistribution); + } + + #endregion + #region Helpers private static void AssertHeightStructureInput(HeightStructure expectedHeightStructure, HeightStructuresInput input)