Index: Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs =================================================================== diff -u -rd56804cd3f9825093f28d7e03b7ab8ccc3f24655 -raf38b1637df89b53b4a9ab7df31d570e21a3191e --- Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs (.../WaveConditionsInputTest.cs) (revision d56804cd3f9825093f28d7e03b7ab8ccc3f24655) +++ Ringtoets/Revetment/test/Ringtoets.Revetment.Data.Test/WaveConditionsInputTest.cs (.../WaveConditionsInputTest.cs) (revision af38b1637df89b53b4a9ab7df31d570e21a3191e) @@ -28,7 +28,6 @@ using NUnit.Framework; using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.DikeProfiles; -using Ringtoets.Common.Data.TestUtil; using Ringtoets.HydraRing.Data; using Ringtoets.Revetment.Data.Properties; @@ -97,11 +96,10 @@ CollectionAssert.IsEmpty(input.ForeshoreGeometry); Assert.AreEqual(new RoundedDouble(2), input.UpperRevetmentLevel); Assert.AreEqual(new RoundedDouble(2), input.LowerRevetmentLevel); - Assert.AreEqual(new RoundedDouble(2), input.UpperWaterLevel); Assert.AreEqual(new RoundedDouble(1), input.StepSize); - CollectionAssert.IsEmpty(input.WaterLevels); Assert.AreEqual(new RoundedDouble(2), input.UpperBoundaryCalculatorSeries); Assert.AreEqual(new RoundedDouble(2), input.LowerBoundaryCalculatorSeries); + CollectionAssert.IsEmpty(input.WaterLevels); } [Test] @@ -367,85 +365,6 @@ } [Test] - public void HydraulicBoundaryLocation_SetNewValue_UpperWaterLevelUpdated() - { - // Setup - var input = new WaveConditionsInput(); - - var designWaterLevel = 8.19; - var expectedWaterLevel = 8.18; - - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, string.Empty, 0, 0) - { - DesignWaterLevel = (RoundedDouble) designWaterLevel - }; - - // Call - input.HydraulicBoundaryLocation = hydraulicBoundaryLocation; - - // Assert - Assert.AreEqual(expectedWaterLevel, input.UpperWaterLevel, input.UpperWaterLevel.GetAccuracy()); - } - - [Test] - [TestCase(true)] - [TestCase(false)] - public void HydraulicBoundaryLocation_WithoutDesignWaterLevel_UpperWaterLevelSetToDefault(bool withDesignWaterLevel) - { - // Setup - var input = new WaveConditionsInput(); - - if (withDesignWaterLevel) - { - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, string.Empty, 0, 0) - { - DesignWaterLevel = new RoundedDouble(2, 6.34) - }; - - input.HydraulicBoundaryLocation = hydraulicBoundaryLocation; - - // Precondition - Assert.AreEqual(6.33, input.UpperWaterLevel, input.UpperWaterLevel.GetAccuracy()); - } - - var newHydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, string.Empty, 0, 0); - - // Call - input.HydraulicBoundaryLocation = newHydraulicBoundaryLocation; - - // Assert - Assert.AreEqual(new RoundedDouble(2), input.UpperWaterLevel); - } - - [Test] - [TestCase(true)] - [TestCase(false)] - public void HydraulicBoundaryLocation_HydraulicBoundaryLocationNull_UpperWaterLevelSetToDefault(bool withDesignWaterLevel) - { - // Setup - var input = new WaveConditionsInput(); - - if (withDesignWaterLevel) - { - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, string.Empty, 0, 0) - { - DesignWaterLevel = new RoundedDouble(2, 6.34) - }; - - input.HydraulicBoundaryLocation = hydraulicBoundaryLocation; - - // Precondition - Assert.AreEqual(6.33, input.UpperWaterLevel, input.UpperWaterLevel.GetAccuracy()); - } - - // Call - input.HydraulicBoundaryLocation = null; - - // Assert - Assert.AreEqual(new RoundedDouble(2), input.UpperWaterLevel); - } - - [Test] [TestCase(0, 0.02, 0)] [TestCase(double.NaN, double.NaN, double.NaN)] [TestCase(1, 8.01, 7.99)]