Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest.cs =================================================================== diff -u -rb86227d730f8326d0e9144afa29f2e39f08e7be8 -r88d14838e27c3a6326f43930800068b939989160 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest.cs) (revision b86227d730f8326d0e9144afa29f2e39f08e7be8) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Forms.Test/PropertyClasses/GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest.cs (.../GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest.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 System.Linq; using Core.Common.Base; @@ -39,32 +38,18 @@ public class GrassCoverErosionOutwardsWaveHeightLocationsPropertiesTest { [Test] - public void Constructor_GetCalculationFuncNull_ThrowsArgumentNullException() - { - // Setup - var hydraulicBoundaryLocations = new ObservableList(); - - // Call - TestDelegate call = () => new GrassCoverErosionOutwardsWaveHeightLocationsProperties(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 GrassCoverErosionOutwardsWaveHeightLocationsProperties(hydraulicBoundaryLocations, - hbl => new HydraulicBoundaryLocationCalculation(hbl)); + var properties = new GrassCoverErosionOutwardsWaveHeightLocationsProperties(hydraulicBoundaryLocationCalculations); // Assert Assert.IsInstanceOf(properties); - Assert.AreSame(hydraulicBoundaryLocations, properties.Data); + Assert.AreSame(hydraulicBoundaryLocationCalculations, properties.Data); + var dynamicPropertyBag = new DynamicPropertyBag(properties); const string expectedLocationsDisplayName = "Locaties"; const string expectedLocationsDescription = "Locaties uit de hydraulische randvoorwaardendatabase."; @@ -95,11 +80,10 @@ }; // Call - var properties = new GrassCoverErosionOutwardsWaveHeightLocationsProperties(new ObservableList - { - hydraulicBoundaryLocation - }, - hbl => hydraulicBoundaryLocationCalculation); + var properties = new GrassCoverErosionOutwardsWaveHeightLocationsProperties(new ObservableList + { + hydraulicBoundaryLocationCalculation + }); // Assert Assert.AreEqual(1, properties.Locations.Length);