Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs =================================================================== diff -u -rb954fb6f2dd56ffb96be7b61ab129f19d879d2ab -rce31448a066c084f755439f3e7d453bfb042b291 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision b954fb6f2dd56ffb96be7b61ab129f19d879d2ab) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Data.Test/DikeProfileTest.cs (.../DikeProfileTest.cs) (revision ce31448a066c084f755439f3e7d453bfb042b291) @@ -93,7 +93,8 @@ null, new DikeProfile.ConstructionProperties()); // Assert - var exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, Resources.DikeProfile_SetGeometry_Collection_of_points_for_geometry_is_null); + var expectedMessage = Resources.DikeProfile_SetGeometry_Collection_of_points_for_geometry_is_null; + var exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); Assert.AreEqual("points", exception.ParamName); } @@ -110,7 +111,8 @@ null, new DikeProfile.ConstructionProperties()); // Assert - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, Resources.DikeProfile_SetGeometry_A_point_in_the_collection_is_null); + var expectedMessage = Resources.DikeProfile_SetGeometry_A_point_in_the_collection_is_null; + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } [Test] @@ -121,7 +123,8 @@ null, new DikeProfile.ConstructionProperties()); // Assert - var exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, Resources.DikeProfile_SetForeshoreGeometry_Collection_of_points_for_foreshore_geometry_is_null); + var expectedMessage = Resources.DikeProfile_SetForeshoreGeometry_Collection_of_points_for_foreshore_geometry_is_null; + var exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); Assert.AreEqual("points", exception.ParamName); } @@ -136,7 +139,8 @@ }, null, new DikeProfile.ConstructionProperties()); // Assert - TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, Resources.DikeProfile_SetForeshoreGeometry_A_point_in_the_collection_is_null); + var expectedMessage = Resources.DikeProfile_SetForeshoreGeometry_A_point_in_the_collection_is_null; + TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, expectedMessage); } [Test]