Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs =================================================================== diff -u -r405b3462fe3bd495b4820bf225a68a4188c9c112 -rb29487c198d87b176783f2396c2b59cd76b9f246 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs (.../MacroStabilityOutwardsSectionResultRowTest.cs) (revision 405b3462fe3bd495b4820bf225a68a4188c9c112) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/Views/SectionResultRows/MacroStabilityOutwardsSectionResultRowTest.cs (.../MacroStabilityOutwardsSectionResultRowTest.cs) (revision b29487c198d87b176783f2396c2b59cd76b9f246) @@ -814,9 +814,8 @@ TestDelegate test = () => row.DetailedAssessmentProbability = value; // Assert - string message = Assert.Throws(test).Message; const string expectedMessage = "De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen."; - Assert.AreEqual(expectedMessage, message); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); mocks.VerifyAll(); } } @@ -916,9 +915,8 @@ TestDelegate test = () => row.TailorMadeAssessmentProbability = value; // Assert - string message = Assert.Throws(test).Message; const string expectedMessage = "De waarde voor de faalkans moet in het bereik [0,0, 1,0] liggen."; - Assert.AreEqual(expectedMessage, message); + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(test, expectedMessage); mocks.VerifyAll(); } }