Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil.Test/TestClosingStructureTest.cs =================================================================== diff -u -r6b18e2c0134c97e01ba13c518fb7a8efa7f42253 -reabf1a800431a23b06c8d81dfbf0f46a71bb659b --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil.Test/TestClosingStructureTest.cs (.../TestClosingStructureTest.cs) (revision 6b18e2c0134c97e01ba13c518fb7a8efa7f42253) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Data.TestUtil.Test/TestClosingStructureTest.cs (.../TestClosingStructureTest.cs) (revision eabf1a800431a23b06c8d81dfbf0f46a71bb659b) @@ -35,26 +35,26 @@ // Assert Assert.IsInstanceOf(structure); - Assert.AreEqual("test", structure.Name); + Assert.AreEqual("name", structure.Name); Assert.AreEqual("id", structure.Id); Assert.AreEqual(new Point2D(12345.56789, 9876.54321), structure.Location); Assert.AreEqual(ClosingStructureInflowModelType.VerticalWall, structure.InflowModelType); AssertTestClosingStructureDefaults(structure); } [Test] - public void Constructor_WithStructureName_ExpectedValues() + public void Constructor_WithStructureId_ExpectedValues() { // Setup - const string name = ""; + const string id = ""; // Call - var structure = new TestClosingStructure(name); + var structure = new TestClosingStructure(id); // Assert Assert.IsInstanceOf(structure); - Assert.AreEqual(name, structure.Name); - Assert.AreEqual("id", structure.Id); + Assert.AreEqual(id, structure.Id); + Assert.AreEqual("name", structure.Name); Assert.AreEqual(new Point2D(12345.56789, 9876.54321), structure.Location); Assert.AreEqual(ClosingStructureInflowModelType.VerticalWall, structure.InflowModelType); AssertTestClosingStructureDefaults(structure); @@ -65,7 +65,7 @@ { // Setup const string name = ""; - const string id = "(structure); + Assert.AreEqual("name", structure.Name); + Assert.AreEqual(id, structure.Id); + Assert.AreEqual(location, structure.Location); + Assert.AreEqual(ClosingStructureInflowModelType.VerticalWall, structure.InflowModelType); + AssertTestClosingStructureDefaults(structure); + } + + [Test] public void Constructor_WithLocation_ExpectedValues() { // Setup @@ -90,7 +109,7 @@ // Assert Assert.IsInstanceOf(structure); - Assert.AreEqual("test", structure.Name); + Assert.AreEqual("name", structure.Name); Assert.AreEqual("id", structure.Id); Assert.AreEqual(location, structure.Location); Assert.AreEqual(ClosingStructureInflowModelType.VerticalWall, structure.InflowModelType); @@ -101,14 +120,14 @@ [TestCase(ClosingStructureInflowModelType.VerticalWall)] [TestCase(ClosingStructureInflowModelType.LowSill)] [TestCase(ClosingStructureInflowModelType.FloodedCulvert)] - public void Constructor_WithLocationName_ExpectedValues(ClosingStructureInflowModelType type) + public void Constructor_WithInflowModelType_ExpectedValues(ClosingStructureInflowModelType type) { // Call var structure = new TestClosingStructure(type); // Assert Assert.IsInstanceOf(structure); - Assert.AreEqual("test", structure.Name); + Assert.AreEqual("name", structure.Name); Assert.AreEqual("id", structure.Id); Assert.AreEqual(new Point2D(12345.56789, 9876.54321), structure.Location); Assert.AreEqual(type, structure.InflowModelType);