Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs =================================================================== diff -u -r1e20f7e689e1e04d3e228e0aa8f71e6bd397dd2f -r1806188dbcb4e704c80abb2fb4fb4c1e76f15435 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs (.../DesignWaterLevelLocationsPropertiesTest.cs) (revision 1e20f7e689e1e04d3e228e0aa8f71e6bd397dd2f) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/DesignWaterLevelLocationsPropertiesTest.cs (.../DesignWaterLevelLocationsPropertiesTest.cs) (revision 1806188dbcb4e704c80abb2fb4fb4c1e76f15435) @@ -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; @@ -40,32 +39,17 @@ private const int requiredLocationsPropertyIndex = 0; [Test] - public void Constructor_GetCalculationFuncNull_ThrowsArgumentNullException() + public void Constructor_WithHydraulicBoundaryLocationCalculations_ExpectedValues() { // Setup - var hydraulicBoundaryLocations = new ObservableList(); + var hydraulicBoundaryLocationCalculations = new ObservableList(); // Call - TestDelegate call = () => new DesignWaterLevelLocationsProperties(hydraulicBoundaryLocations, null); + var properties = new DesignWaterLevelLocationsProperties(hydraulicBoundaryLocationCalculations); // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("getCalculationFunc", exception.ParamName); - } - - [Test] - public void Constructor_WithHydraulicBoundaryLocations_ExpectedValues() - { - // Setup - var hydraulicBoundaryLocations = new ObservableList(); - - // Call - var properties = new DesignWaterLevelLocationsProperties(hydraulicBoundaryLocations, - hbl => new HydraulicBoundaryLocationCalculation(hbl)); - - // Assert Assert.IsInstanceOf(properties); - Assert.AreSame(hydraulicBoundaryLocations, properties.Data); + Assert.AreSame(hydraulicBoundaryLocationCalculations, properties.Data); } [Test] @@ -79,11 +63,10 @@ }; // Call - var properties = new DesignWaterLevelLocationsProperties(new ObservableList - { - hydraulicBoundaryLocation - }, - hbl => hydraulicBoundaryLocationCalculation); + var properties = new DesignWaterLevelLocationsProperties(new ObservableList + { + hydraulicBoundaryLocationCalculation + }); // Assert CollectionAssert.AllItemsAreInstancesOfType(properties.Locations, typeof(DesignWaterLevelLocationProperties)); @@ -104,8 +87,7 @@ public void Constructor_Always_PropertiesHaveExpectedAttributesValues() { // Call - var properties = new DesignWaterLevelLocationsProperties(new ObservableList(), - hbl => new HydraulicBoundaryLocationCalculation(hbl)); + var properties = new DesignWaterLevelLocationsProperties(new ObservableList()); // Assert TypeConverter classTypeConverter = TypeDescriptor.GetConverter(properties, true);