Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest.cs =================================================================== diff -u -rb86227d730f8326d0e9144afa29f2e39f08e7be8 -r88d14838e27c3a6326f43930800068b939989160 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest.cs) (revision b86227d730f8326d0e9144afa29f2e39f08e7be8) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest.cs (.../GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest.cs) (revision 88d14838e27c3a6326f43930800068b939989160) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using System.ComponentModel; using Core.Common.Base; using Core.Common.Base.Data; @@ -38,32 +37,17 @@ public class GrassCoverErosionOutwardsDesignWaterLevelLocationsPropertiesTest { [Test] - public void Constructor_GetCalculationFuncNull_ThrowsArgumentNullException() - { - // Setup - var hydraulicBoundaryLocations = new ObservableList(); - - // Call - TestDelegate call = () => new GrassCoverErosionOutwardsDesignWaterLevelLocationsProperties(hydraulicBoundaryLocations, null); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("getCalculationFunc", exception.ParamName); - } - - [Test] public void Constructor_WithLocations_ExpectedValues() { // Setup - var hydraulicBoundaryLocations = new ObservableList(); + var hydraulicBoundaryLocationCalculations = new ObservableList(); // Call - var properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsProperties(hydraulicBoundaryLocations, - hbl => new HydraulicBoundaryLocationCalculation(hbl)); + var properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsProperties(hydraulicBoundaryLocationCalculations); // Assert Assert.IsInstanceOf(properties); - Assert.AreSame(hydraulicBoundaryLocations, properties.Data); + Assert.AreSame(hydraulicBoundaryLocationCalculations, properties.Data); var dynamicPropertyBag = new DynamicPropertyBag(properties); const string expectedLocationsDisplayName = "Locaties"; @@ -95,11 +79,10 @@ }; // Call - var properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsProperties(new ObservableList - { - hydraulicBoundaryLocation - }, - hbl => hydraulicBoundaryLocationCalculation); + var properties = new GrassCoverErosionOutwardsDesignWaterLevelLocationsProperties(new ObservableList + { + hydraulicBoundaryLocationCalculation + }); // Assert Assert.AreEqual(1, properties.Locations.Length);