Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationServiceTest.cs =================================================================== diff -u -r7dce1ceb498815baa3486f459710c77327d4ef10 -rd79f0f4aa80c99ba45a7ff3a502b5437975f7b58 --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationServiceTest.cs (.../WaveHeightCalculationServiceTest.cs) (revision 7dce1ceb498815baa3486f459710c77327d4ef10) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/WaveHeightCalculationServiceTest.cs (.../WaveHeightCalculationServiceTest.cs) (revision d79f0f4aa80c99ba45a7ff3a502b5437975f7b58) @@ -164,7 +164,7 @@ mockRepository.ReplayAll(); // Call - TestDelegate test = () => new WaveHeightCalculationService().Calculate(new TestHydraulicBoundaryLocation(), + TestDelegate test = () => new WaveHeightCalculationService().Calculate(new TestHydraulicBoundaryLocation(), null, testDataPath, validPreprocessorDirectory, @@ -177,6 +177,22 @@ } [Test] + public void Calculate_MessageProviderNull_ThrowArgumentNullException() + { + // Call + TestDelegate test = () => new WaveHeightCalculationService().Calculate(new TestHydraulicBoundaryLocation(), + new HydraulicBoundaryLocationCalculation(), + string.Empty, + string.Empty, + 1, + null); + + // Assert + var exception = Assert.Throws(test); + Assert.AreEqual("messageProvider", exception.ParamName); + } + + [Test] [TestCase(true)] [TestCase(false)] public void Calculate_ValidWaveHeightCalculationAndConverges_StartsCalculationWithRightParametersAndLogs(bool readIllustrationPoints)