Index: Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs =================================================================== diff -u -rb6f3b68404cad00988843342f68022dc743e74c1 -r6c6958c191ae7d75b220bf99684d40b9a7bffd48 --- Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs (.../DesignWaterLevelCalculationServiceTest.cs) (revision b6f3b68404cad00988843342f68022dc743e74c1) +++ Ringtoets/Common/test/Ringtoets.Common.Service.Test/DesignWaterLevelCalculationServiceTest.cs (.../DesignWaterLevelCalculationServiceTest.cs) (revision 6c6958c191ae7d75b220bf99684d40b9a7bffd48) @@ -44,18 +44,21 @@ [TestFixture] public class DesignWaterLevelCalculationServiceTest { + private const double validNorm = 0.005; private static readonly string testDataPath = TestHelper.GetTestDataPath(TestDataPath.Ringtoets.Integration.Service, "HydraRingCalculation"); private static readonly string validFilePath = Path.Combine(testDataPath, "HRD dutch coast south.sqlite"); private static readonly string validPreprocessorDirectory = TestHelper.GetScratchPadPath(); [Test] - public void Validate_ValidPaths_ReturnsTrue() + public void Validate_ValidInput_ReturnsTrue() { // Setup var valid = false; // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(validFilePath, validPreprocessorDirectory); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(validFilePath, + validPreprocessorDirectory, + validNorm); // Assert TestHelper.AssertLogMessages(call, messages => @@ -76,7 +79,9 @@ var valid = true; // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath, validPreprocessorDirectory); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath, + validPreprocessorDirectory, + validNorm); // Assert TestHelper.AssertLogMessages(call, messages => @@ -98,7 +103,9 @@ var valid = false; // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath, validPreprocessorDirectory); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(notValidFilePath, + validPreprocessorDirectory, + validNorm); // Assert TestHelper.AssertLogMessages(call, messages => @@ -120,7 +127,9 @@ var valid = true; // Call - Action call = () => valid = DesignWaterLevelCalculationService.Validate(validFilePath, invalidPreprocessorDirectory); + Action call = () => valid = DesignWaterLevelCalculationService.Validate(validFilePath, + invalidPreprocessorDirectory, + validNorm); // Assert TestHelper.AssertLogMessages(call, messages =>