Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs =================================================================== diff -u -rba1d2c3b299441a10efb6c7c044eccb86c9dc4a1 -r54c270e65b7ea51ec9855500fbc7cd9f5869fceb --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs (.../GrassCoverErosionInwardsInputTest.cs) (revision ba1d2c3b299441a10efb6c7c044eccb86c9dc4a1) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/GrassCoverErosionInwardsInputTest.cs (.../GrassCoverErosionInwardsInputTest.cs) (revision 54c270e65b7ea51ec9855500fbc7cd9f5869fceb) @@ -20,7 +20,6 @@ // All rights reserved. using System; -using System.Collections.Generic; using System.Linq; using Core.Common.Base; using Core.Common.Base.Data; @@ -55,28 +54,26 @@ var orientation = new RoundedDouble(2, 1.18); var logNormal = new LognormalDistribution(2); const bool foreshorePresent = true; - var breakWater = new List - { - new BreakWater(BreakWaterType.Caisson, 2.2) - }; + var breakWater = new BreakWater(BreakWaterType.Caisson, 2.2); const bool breakWaterPresent = true; - const double dikeHeight = 1.1; + RoundedDouble dikeHeight = new RoundedDouble(input.DikeHeight.NumberOfDecimalPlaces, 1.1); // Call input.Orientation = orientation; input.CriticalFlowRate = logNormal; input.DikeHeight = dikeHeight; - input.ForeshorePresent = foreshorePresent; + input.UseForeshore = foreshorePresent; input.BreakWater = breakWater; - input.BreakWaterPresent = breakWaterPresent; + input.UseBreakWater = breakWaterPresent; // Assert Assert.AreEqual(dikeHeight, input.DikeHeight); Assert.AreEqual(orientation, input.Orientation); - Assert.AreEqual(logNormal, input.CriticalFlowRate); - Assert.AreEqual(foreshorePresent, input.ForeshorePresent); + Assert.AreEqual(logNormal.Mean, input.CriticalFlowRate.Mean); + Assert.AreEqual(logNormal.StandardDeviation, input.CriticalFlowRate.StandardDeviation); + Assert.AreEqual(foreshorePresent, input.UseForeshore); Assert.AreEqual(breakWater, input.BreakWater); - Assert.AreEqual(breakWaterPresent, input.BreakWaterPresent); + Assert.AreEqual(breakWaterPresent, input.UseBreakWater); } [Test]