Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs =================================================================== diff -u -r122edb15a01ee908bf7774f862258b6606522c68 -r00a04da4497b53cd599b616deb0431c4cea9baeb --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs (.../WaveHeightCalculationActivityTest.cs) (revision 122edb15a01ee908bf7774f862258b6606522c68) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationActivityTest.cs (.../WaveHeightCalculationActivityTest.cs) (revision 00a04da4497b53cd599b616deb0431c4cea9baeb) @@ -123,11 +123,11 @@ calculationMessageProviderMock.Stub(calc => calc.GetCalculationName(locationName)).Return(calculationName).Repeat.AtLeastOnce(); mockRepository.ReplayAll(); - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, locationName, 0, 0) - { - WaveHeight = new RoundedDouble(2, double.NaN) - }; + var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(1, locationName, 0, 0); + // Precondition + Assert.AreEqual((RoundedDouble)double.NaN, hydraulicBoundaryLocation.WaveHeight); + var activity = new WaveHeightCalculationActivity(hydraulicBoundaryLocation, inValidFilePath, string.Empty, 1, calculationMessageProviderMock); // Call @@ -156,11 +156,11 @@ const string ringId = "11-1"; const double norm = 1.0/30; - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, locationName, 0, 0) - { - WaveHeight = new RoundedDouble(2, double.NaN) - }; + var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(0, locationName, 0, 0); + // Precondition + Assert.AreEqual((RoundedDouble)double.NaN, hydraulicBoundaryLocation.WaveHeight); + var calculationMessageProviderMock = mockRepository.Stub(); calculationMessageProviderMock.Stub(calc => calc.GetActivityName(locationName)).Return(activityName); calculationMessageProviderMock.Stub(calc => calc.GetCalculationName(locationName)).Return(calculationName);