Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsInputValidatorTest.cs =================================================================== diff -u -r8d246ac6328e6e649ff6e78dfe3fac210d789ba0 -r6cd47071c8dbb10eb401925acbb067c4be9266d9 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsInputValidatorTest.cs (.../MacroStabilityInwardsInputValidatorTest.cs) (revision 8d246ac6328e6e649ff6e78dfe3fac210d789ba0) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Service.Test/MacroStabilityInwardsInputValidatorTest.cs (.../MacroStabilityInwardsInputValidatorTest.cs) (revision 6cd47071c8dbb10eb401925acbb067c4be9266d9) @@ -48,7 +48,7 @@ public void Validate_InputNull_ThrowArgumentNullException() { // Call - TestDelegate test = () => MacroStabilityInwardsInputValidator.Validate(null); + TestDelegate test = () => MacroStabilityInwardsInputValidator.Validate(null, RoundedDouble.NaN); // Assert var exception = Assert.Throws(test); @@ -59,7 +59,7 @@ public void Validate_ValidInput_ReturnsEmpty() { // Call - string[] messages = MacroStabilityInwardsInputValidator.Validate(input).ToArray(); + string[] messages = MacroStabilityInwardsInputValidator.Validate(input, GetTestNormativeAssessmentLevel()).ToArray(); // Assert CollectionAssert.IsEmpty(messages); @@ -72,7 +72,7 @@ input = new MacroStabilityInwardsInput(new MacroStabilityInwardsInput.ConstructionProperties()); // Call - IEnumerable messages = MacroStabilityInwardsInputValidator.Validate(input).ToArray(); + IEnumerable messages = MacroStabilityInwardsInputValidator.Validate(input, GetTestNormativeAssessmentLevel()).ToArray(); // Assert CollectionAssert.AreEqual(new[] @@ -84,7 +84,7 @@ } [Test] - public void Validate_HydraulicBoundaryLocationNotCalculated_ReturnsError() + public void Validate_AssessmentLevelNotCalculated_ReturnsError() { // Setup input.HydraulicBoundaryLocation = new TestHydraulicBoundaryLocation(); @@ -603,5 +603,10 @@ }, new MacroStabilityInwardsPreconsolidationStress[0])) .SetName("X further than x of surfaceLine"); } + + private static RoundedDouble GetTestNormativeAssessmentLevel() + { + return (RoundedDouble) 1.1; + } } } \ No newline at end of file