Index: Ringtoets/Common/test/Ringtoets.Common.Data.Test/StructureBaseTest.cs =================================================================== diff -u -r396f21603d742cdfb0e92817e5fd0b4df1e9f851 -r3e3087bd9c43ca5a3910438b3c9daf0defcb09bf --- Ringtoets/Common/test/Ringtoets.Common.Data.Test/StructureBaseTest.cs (.../StructureBaseTest.cs) (revision 396f21603d742cdfb0e92817e5fd0b4df1e9f851) +++ Ringtoets/Common/test/Ringtoets.Common.Data.Test/StructureBaseTest.cs (.../StructureBaseTest.cs) (revision 3e3087bd9c43ca5a3910438b3c9daf0defcb09bf) @@ -40,8 +40,8 @@ TestDelegate call = () => new TestStructure(name, "anId", new Point2D(0, 0), 0.0); // Assert - ArgumentException exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "Parameter is null, empty or consists of whitespace."); - Assert.AreEqual("name", exception.ParamName); + ArgumentException exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "Name is null, empty or consists of whitespace."); + Assert.AreEqual("constructionProperties", exception.ParamName); } [Test] @@ -54,8 +54,8 @@ TestDelegate call = () => new TestStructure("aName", id, new Point2D(0, 0), 0.0); // Assert - ArgumentException exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "Parameter is null, empty or consists of whitespace."); - Assert.AreEqual("id", exception.ParamName); + ArgumentException exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "Id is null, empty or consists of whitespace."); + Assert.AreEqual("constructionProperties", exception.ParamName); } [Test] @@ -65,8 +65,8 @@ TestDelegate call = () => new TestStructure("aName", "anId", null, 0.0); // Assert - string paramName = Assert.Throws(call).ParamName; - Assert.AreEqual("location", paramName); + ArgumentNullException exception = TestHelper.AssertThrowsArgumentExceptionAndTestMessage(call, "Location is null."); + Assert.AreEqual("constructionProperties", exception.ParamName); } [Test]