Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/WaveHeightCalculationsGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r2b7a4d261a11c943ea0f0081d45edea6252887cc -r58bb28c3d0e0ccfc1a3cfcd29bd4f5e5ead4d0a9 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/WaveHeightCalculationsGroupContextTreeNodeInfoTest.cs (.../WaveHeightCalculationsGroupContextTreeNodeInfoTest.cs) (revision 2b7a4d261a11c943ea0f0081d45edea6252887cc) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/WaveHeightCalculationsGroupContextTreeNodeInfoTest.cs (.../WaveHeightCalculationsGroupContextTreeNodeInfoTest.cs) (revision 58bb28c3d0e0ccfc1a3cfcd29bd4f5e5ead4d0a9) @@ -44,6 +44,7 @@ using Ringtoets.Common.Plugin.TestUtil; using Ringtoets.HydraRing.Calculation.Calculator; using Ringtoets.HydraRing.Calculation.Calculator.Factory; +using Ringtoets.HydraRing.Calculation.Data.Input; using Ringtoets.HydraRing.Calculation.TestUtil.Calculator; using RingtoetsCommonFormsResources = Ringtoets.Common.Forms.Properties.Resources; @@ -293,11 +294,12 @@ { // Given var mockRepository = new MockRepository(); + string filePath = Path.Combine(testDataPath, "HRD ijsselmeer.sqlite"); var assessmentSection = new AssessmentSectionStub { HydraulicBoundaryDatabase = { - FilePath = Path.Combine(testDataPath, "HRD ijsselmeer.sqlite") + FilePath = filePath } }; @@ -325,7 +327,14 @@ Converged = false }; var calculatorFactory = mockRepository.Stub(); - calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(testDataPath, string.Empty)).Return(waveHeightCalculator).Repeat.Times(4); + calculatorFactory.Expect(cf => cf.CreateWaveHeightCalculator(Arg.Is.NotNull)) + .WhenCalled(invocation => + { + var settings = (HydraRingCalculationSettings) invocation.Arguments[0]; + Assert.AreEqual(filePath, settings.HlcdFilePath); + Assert.IsEmpty(settings.PreprocessorDirectory); + }) + .Return(waveHeightCalculator).Repeat.Times(4); mockRepository.ReplayAll(); DialogBoxHandler = (name, wnd) =>