Index: Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs =================================================================== diff -u -ra294987551b0b2d8a27b6e1bc6235b0e2351b6f4 -r61ced0f990b10b560e2d5700b5851cdb188585db --- Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs (.../HydraulicLocationEntityReadExtensionsTest.cs) (revision a294987551b0b2d8a27b6e1bc6235b0e2351b6f4) +++ Application/Ringtoets/test/Application.Ringtoets.Storage.Test/Read/HydraulicLocationEntityReadExtensionsTest.cs (.../HydraulicLocationEntityReadExtensionsTest.cs) (revision 61ced0f990b10b560e2d5700b5851cdb188585db) @@ -76,6 +76,8 @@ Assert.AreEqual(testName, location.Name); Assert.AreEqual(x, location.Location.X, 1e-6); Assert.AreEqual(y, location.Location.Y, 1e-6); + Assert.IsNaN(location.DesignWaterLevel); + Assert.IsNaN(location.WaveHeight); } [Test] @@ -104,6 +106,31 @@ } [Test] + [TestCase(null, double.NaN)] + [TestCase(double.MaxValue, double.MaxValue)] + [TestCase(double.MinValue, double.MinValue)] + [TestCase(1.5, 1.5)] + [TestCase(double.NaN, double.NaN)] + public void Read_DifferentWaveHeight_ReturnHydraulicBoundaryLocationWithExpectedWaveHeight(double? waveHeight, double expectedWaveHeight) + { + // Setup + var entity = new HydraulicLocationEntity + { + Name = "someName", + WaveHeight = waveHeight + }; + + var collector = new ReadConversionCollector(); + + // Call + var location = entity.Read(collector); + + // Assert + Assert.IsNotNull(location); + Assert.AreEqual(expectedWaveHeight, location.WaveHeight); + } + + [Test] public void Read_SameHydraulicLocationEntityTwice_ReturnSameHydraulicBoundaryLocation() { // Setup