Index: Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructuresFailureMechanismSectionResult.cs =================================================================== diff -u -r4f8f3ccccf4857781fe92b05d64e54320e6bfdfe -rb1ccab40b4b1c04f1c9657d580c5aa41e8b55698 --- Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructuresFailureMechanismSectionResult.cs (.../StabilityPointStructuresFailureMechanismSectionResult.cs) (revision 4f8f3ccccf4857781fe92b05d64e54320e6bfdfe) +++ Ringtoets/StabilityPointStructures/src/Ringtoets.StabilityPointStructures.Data/StabilityPointStructuresFailureMechanismSectionResult.cs (.../StabilityPointStructuresFailureMechanismSectionResult.cs) (revision b1ccab40b4b1c04f1c9657d580c5aa41e8b55698) @@ -24,6 +24,7 @@ using Ringtoets.Common.Data.Probability; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Primitives; +using RingtoetsCommonDataResources = Ringtoets.Common.Data.Properties.Resources; namespace Ringtoets.StabilityPointStructures.Data { @@ -58,10 +59,11 @@ public SimpleAssessmentResultValidityOnlyType SimpleAssessmentResult { get; set; } /// - /// Gets or sets the value of the tailored assessment of safety. + /// Gets or sets the value of the tailor made assessment of safety + /// per failure mechanism section as a probability. /// - /// Thrown when - /// is outside of the valid ranges. + /// Thrown when + /// is not in range [0,1]. public double TailorMadeAssessmentProbability { get @@ -70,7 +72,9 @@ } set { - ProbabilityHelper.ValidateProbability(value, null, true); + ProbabilityHelper.ValidateProbability(value, null, + RingtoetsCommonDataResources.ArbitraryProbabilityFailureMechanismSectionResult_AssessmentProbability_Value_needs_to_be_in_Range_0_, + true); tailorMadeAssessmentProbability = value; } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSectionResultTest.cs =================================================================== diff -u -r4f8f3ccccf4857781fe92b05d64e54320e6bfdfe -rb1ccab40b4b1c04f1c9657d580c5aa41e8b55698 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSectionResultTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultTest.cs) (revision 4f8f3ccccf4857781fe92b05d64e54320e6bfdfe) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Data.Test/StabilityPointStructuresFailureMechanismSectionResultTest.cs (.../StabilityPointStructuresFailureMechanismSectionResultTest.cs) (revision b1ccab40b4b1c04f1c9657d580c5aa41e8b55698) @@ -64,7 +64,7 @@ TestDelegate call = () => sectionResult.TailorMadeAssessmentProbability = invalidValue; // Assert - const string expectedMessage = "Kans moet in het bereik [0,0, 1,0] liggen."; + const string expectedMessage = "De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen."; TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismResultViewTest.cs =================================================================== diff -u -r4f8f3ccccf4857781fe92b05d64e54320e6bfdfe -rb1ccab40b4b1c04f1c9657d580c5aa41e8b55698 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismResultViewTest.cs (.../StabilityPointStructuresFailureMechanismResultViewTest.cs) (revision 4f8f3ccccf4857781fe92b05d64e54320e6bfdfe) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Forms.Test/Views/StabilityPointStructuresFailureMechanismResultViewTest.cs (.../StabilityPointStructuresFailureMechanismResultViewTest.cs) (revision b1ccab40b4b1c04f1c9657d580c5aa41e8b55698) @@ -549,7 +549,7 @@ dataGridView.Rows[0].Cells[assessmentLayerThreeIndex].Value = newValue.ToString(CultureInfo.CurrentCulture); // Assert - Assert.AreEqual("Kans moet in het bereik [0,0, 1,0] liggen.", dataGridView.Rows[0].ErrorText); + Assert.AreEqual("De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen.", dataGridView.Rows[0].ErrorText); } }