Index: Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/DesignWaterLevelLocationRowTest.cs =================================================================== diff -u -re182f6f394aa75e739467a77e7bcacd9a8b25429 -r19db52c6c2776ade0a18342b78f1d64f809ce9d7 --- Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/DesignWaterLevelLocationRowTest.cs (.../DesignWaterLevelLocationRowTest.cs) (revision e182f6f394aa75e739467a77e7bcacd9a8b25429) +++ Ringtoets/Common/test/Ringtoets.Common.Forms.Test/Views/DesignWaterLevelLocationRowTest.cs (.../DesignWaterLevelLocationRowTest.cs) (revision 19db52c6c2776ade0a18342b78f1d64f809ce9d7) @@ -49,26 +49,19 @@ public void Constructor_WithDesignWaterLevelLocationContext_PropertiesFromHydraulicBoundaryLocation() { // Setup - const int id = 1; - const string locationname = "LocationName"; - const double coordinateX = 1.0; - const double coordinateY = 2.0; - RoundedDouble designWaterLevel = (RoundedDouble) 3.0; - var hydraulicBoundaryLocation = new HydraulicBoundaryLocation(id, locationname, coordinateX, coordinateY) - { - DesignWaterLevel = designWaterLevel - }; + const double designWaterLevel = 3.0; + HydraulicBoundaryLocation hydraulicBoundaryLocation = TestHydraulicBoundaryLocation.CreateDesignWaterLevelCalculated( + designWaterLevel); // Call var row = new DesignWaterLevelLocationRow(hydraulicBoundaryLocation); // Assert Assert.IsInstanceOf(row); - Assert.AreEqual(id, row.Id); - Assert.AreEqual(locationname, row.Name); + Assert.AreEqual(hydraulicBoundaryLocation.Id, row.Id); + Assert.AreEqual(hydraulicBoundaryLocation.Name, row.Name); Assert.AreEqual(designWaterLevel, row.DesignWaterLevel, hydraulicBoundaryLocation.DesignWaterLevel.GetAccuracy()); - var expectedPoint2D = new Point2D(coordinateX, coordinateY); - Assert.AreEqual(expectedPoint2D, row.Location); + Assert.AreEqual(hydraulicBoundaryLocation.Location, row.Location); Assert.AreSame(hydraulicBoundaryLocation, row.HydraulicBoundaryLocation); Assert.IsFalse(row.ToCalculate); Assert.IsTrue(TypeUtils.HasTypeConverter