Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertiesTest.cs =================================================================== diff -u -r87aafc58782eb7ce49b1e06b1db2feda8cd85948 -re1d4d3fe987bfa6504703952ea0dbd8a18f5a698 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertiesTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertiesTest.cs) (revision 87aafc58782eb7ce49b1e06b1db2feda8cd85948) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertiesTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsContextPropertiesTest.cs) (revision e1d4d3fe987bfa6504703952ea0dbd8a18f5a698) @@ -23,6 +23,7 @@ using Core.Common.Base; using Core.Common.Gui.Converters; using Core.Common.Gui.PropertyBag; +using Core.Common.Utils.Reflection; using NUnit.Framework; using Ringtoets.Common.Data.Hydraulics; using Ringtoets.Common.Data.TestUtil; @@ -48,11 +49,10 @@ public void GetProperties_WithData_ReturnExpectedValues() { // Setup - var designWaterLevel = 12.34; - var location = TestHydraulicBoundaryLocation.CreateDesignWaterLevelCalculated(designWaterLevel); + HydraulicBoundaryLocation location = TestHydraulicBoundaryLocation.CreateDesignWaterLevelCalculated(1.2); // Call - GrassCoverErosionOutwardsDesignWaterLevelLocationsContextProperties properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContextProperties + var properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsContextProperties { Data = new ObservableList { @@ -62,12 +62,14 @@ // Assert Assert.AreEqual(1, properties.Locations.Length); - + Assert.IsTrue(TypeUtils.HasTypeConverter(p => p.Locations)); GrassCoverErosionOutwardsDesignWaterLevelLocationContextProperties locationProperties = properties.Locations[0]; Assert.AreEqual(location.Name, locationProperties.Name); Assert.AreEqual(location.Id, locationProperties.Id); Assert.AreEqual(location.Location, locationProperties.Location); - Assert.AreEqual(designWaterLevel, locationProperties.DesignWaterLevel, location.DesignWaterLevel.GetAccuracy()); + Assert.AreEqual(location.DesignWaterLevel, locationProperties.DesignWaterLevel, location.DesignWaterLevel.GetAccuracy()); + Assert.AreEqual("", locationProperties.Convergence); } [Test]