Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs =================================================================== diff -u -r57eb47b74e13d3893ded8879b38f18c1e0ae58a1 -r6525572c5945b9df76079c4be2d8b3b2e1827fca --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs (.../GeneralHeightStructuresInputTest.cs) (revision 57eb47b74e13d3893ded8879b38f18c1e0ae58a1) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/GeneralHeightStructuresInputTest.cs (.../GeneralHeightStructuresInputTest.cs) (revision 6525572c5945b9df76079c4be2d8b3b2e1827fca) @@ -25,6 +25,7 @@ using NUnit.Framework; using Ringtoets.Common.Data.Probabilistics; using Ringtoets.Common.Data.Properties; +using Ringtoets.Common.Data.TestUtil; namespace Ringtoets.HeightStructures.Data.Test { @@ -39,25 +40,30 @@ // Assert Assert.AreEqual(2, generalHeightStructuresInput.N); - Assert.AreEqual(9.81, generalHeightStructuresInput.GravitationalAcceleration, 1e-6); - var modelFactorOvertopping = new NormalDistribution(3) + Assert.AreEqual(2, generalHeightStructuresInput.GravitationalAcceleration.NumberOfDecimalPlaces); + Assert.AreEqual(9.81, generalHeightStructuresInput.GravitationalAcceleration, generalHeightStructuresInput.GravitationalAcceleration.GetAccuracy()); + + var modelFactorOvertopping = new LogNormalDistribution(3) { Mean = new RoundedDouble(3, 0.09), StandardDeviation = new RoundedDouble(3, 0.06) }; + Assert.IsInstanceOf(generalHeightStructuresInput.ModelFactorOvertoppingFlow); Assert.AreEqual(modelFactorOvertopping.Mean, generalHeightStructuresInput.ModelFactorOvertoppingFlow.Mean); Assert.AreEqual(modelFactorOvertopping.StandardDeviation, generalHeightStructuresInput.ModelFactorOvertoppingFlow.StandardDeviation); - var modelFactorStorageVolume = new NormalDistribution(2) + var modelFactorStorageVolume = new LogNormalDistribution(2) { Mean = new RoundedDouble(2, 1.00), StandardDeviation = new RoundedDouble(2, 0.20) }; + Assert.IsInstanceOf(generalHeightStructuresInput.ModelFactorStorageVolume); Assert.AreEqual(modelFactorStorageVolume.Mean, generalHeightStructuresInput.ModelFactorStorageVolume.Mean); Assert.AreEqual(modelFactorStorageVolume.StandardDeviation, generalHeightStructuresInput.ModelFactorStorageVolume.StandardDeviation); - Assert.AreEqual(1, generalHeightStructuresInput.ModelFactorInflowVolume, 1e-6); + Assert.AreEqual(2, generalHeightStructuresInput.ModelFactorInflowVolume.NumberOfDecimalPlaces); + Assert.AreEqual(1, generalHeightStructuresInput.ModelFactorInflowVolume, generalHeightStructuresInput.ModelFactorInflowVolume.GetAccuracy()); } [Test]