Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil.Test/TestHeightStructureTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -r8cbb4a20c556600eeabe49b979ea5fce12e1a6b3 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil.Test/TestHeightStructureTest.cs (.../TestHeightStructureTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.TestUtil.Test/TestHeightStructureTest.cs (.../TestHeightStructureTest.cs) (revision 8cbb4a20c556600eeabe49b979ea5fce12e1a6b3) @@ -40,7 +40,7 @@ var heightStructure = new TestHeightStructure(); // Assert - AssertTestHeightStructure(heightStructure, expectedName, expectedLocation); + AssertTestHeightStructure(heightStructure, expectedName, "Id", expectedLocation); } [Test] @@ -54,7 +54,7 @@ var heightStructure = new TestHeightStructure(customLocation); // Assert - AssertTestHeightStructure(heightStructure, expectedName, customLocation); + AssertTestHeightStructure(heightStructure, expectedName, "Id", customLocation); } [Test] @@ -68,28 +68,30 @@ var heightStructure = new TestHeightStructure(customName); // Assert - AssertTestHeightStructure(heightStructure, customName, expectedLocation); + AssertTestHeightStructure(heightStructure, customName, "Id", expectedLocation); } [Test] public void Constructor_CustomNameAndLocation_ExpectedValues() { // Setup const string customName = "A different name for structure"; + const string customId = "an different id for structure"; var customLocation = new Point2D(10, 20); // Call - var heightStructure = new TestHeightStructure(customName, customLocation); + var heightStructure = new TestHeightStructure(customName, customId, customLocation); // Assert - AssertTestHeightStructure(heightStructure, customName, customLocation); + AssertTestHeightStructure(heightStructure, customName, customId, customLocation); } - private static void AssertTestHeightStructure(TestHeightStructure heightStructure, string expectedName, Point2D expectedLocation) + private static void AssertTestHeightStructure(TestHeightStructure heightStructure, string expectedName, + string expectedId, Point2D expectedLocation) { Assert.IsInstanceOf(heightStructure); Assert.AreEqual(expectedName, heightStructure.Name); - Assert.AreEqual("Id", heightStructure.Id); + Assert.AreEqual(expectedId, heightStructure.Id); Assert.AreEqual(expectedLocation.X, heightStructure.Location.X); Assert.AreEqual(expectedLocation.Y, heightStructure.Location.Y);