Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/GuiServices/DuneLocationCalculationGuiServiceTest.cs =================================================================== diff -u -re5e17b215166c0d4451d922e477cc4d0a4c15205 -rbf0bb686ee2b533188f8eabdc09732e52d775888 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/GuiServices/DuneLocationCalculationGuiServiceTest.cs (.../DuneLocationCalculationGuiServiceTest.cs) (revision e5e17b215166c0d4451d922e477cc4d0a4c15205) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Forms.Test/GuiServices/DuneLocationCalculationGuiServiceTest.cs (.../DuneLocationCalculationGuiServiceTest.cs) (revision bf0bb686ee2b533188f8eabdc09732e52d775888) @@ -185,6 +185,37 @@ } [Test] + public void Calculate_InvalidNorm_LogsError() + { + // Setup + var calculatorFactory = mockRepository.StrictMock(); + mockRepository.ReplayAll(); + + using (var viewParent = new Form()) + using (new HydraRingCalculatorFactoryConfig(calculatorFactory)) + { + var guiService = new DuneLocationCalculationGuiService(viewParent); + + // Call + Action call = () => guiService.Calculate(Enumerable.Empty(), + validFilePath, + validPreprocessorDirectory, + 1.0); + + // Assert + TestHelper.AssertLogMessages(call, messages => + { + string[] msgs = messages.ToArray(); + Assert.AreEqual(1, msgs.Length); + Assert.AreEqual("Berekeningen konden niet worden gestart. Doelkans is te groot om een berekening uit te kunnen voeren.", msgs.First()); + }); + } + + mockRepository.VerifyAll(); + } + + + [Test] public void Calculate_ValidPathOneCalculationInTheList_LogsMessages() { // Setup