Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/GeneralStabilityPointStructuresInputTest.cs =================================================================== diff -u -r680d50ac48c78aba5bcdb6cc459343ef6941f7a0 -r4e11185058b30d0fc525382d015112be4a2e84f8 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/GeneralStabilityPointStructuresInputTest.cs (.../GeneralStabilityPointStructuresInputTest.cs) (revision 680d50ac48c78aba5bcdb6cc459343ef6941f7a0) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/GeneralStabilityPointStructuresInputTest.cs (.../GeneralStabilityPointStructuresInputTest.cs) (revision 4e11185058b30d0fc525382d015112be4a2e84f8) @@ -94,7 +94,9 @@ [TestCase(1.0)] [TestCase(10.0)] [TestCase(20.0)] - public void N_ValueInsideValidRegion_DoesNotThrow(double value) + [TestCase(0.999)] + [TestCase(20.001)] + public void N_SetValidValue_UpdatesValue(double value) { // Setup var generalStabilityPointStructuresInput = new GeneralStabilityPointStructuresInput(); @@ -107,11 +109,12 @@ } [Test] + [SetCulture("nl-NL")] [TestCase(-10.0)] - [TestCase(0.0)] - [TestCase(21.0)] + [TestCase(0.99)] + [TestCase(20.01)] [TestCase(50.0)] - public void N_ValueOutsideValidRegion_ThrowsArgumentOutOfRangeException(double value) + public void N_SetValueOutsideValidRange_ThrowArgumentOutOfRangeException(double value) { // Setup var generalStabilityPointStructuresInput = new GeneralStabilityPointStructuresInput(); @@ -120,7 +123,7 @@ TestDelegate test = () => generalStabilityPointStructuresInput.N = (RoundedDouble) value; // Assert - const string expectedMessage = "De waarde voor 'N' moet in het bereik [1, 20] liggen."; + const string expectedMessage = "De waarde voor 'N' moet in het bereik [1,00, 20,00] liggen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); } }