Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs =================================================================== diff -u -r0aa226bd935a658e8447c6828496a4e49418e7fb -r03db4c2a6708630d26b6a615620347dc755c50d0 --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision 0aa226bd935a658e8447c6828496a4e49418e7fb) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/PropertyClasses/HydraulicBoundaryLocationPropertiesTest.cs (.../HydraulicBoundaryLocationPropertiesTest.cs) (revision 03db4c2a6708630d26b6a615620347dc755c50d0) @@ -43,34 +43,21 @@ public void Constructor_HydraulicBoundaryLocationNull_ThrowsArgumentNullException() { // Call - TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(null, new HydraulicBoundaryLocationCalculation()); + TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(null); // Assert string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("hydraulicBoundaryLocation", paramName); } [Test] - public void Constructor_HydraulicBoundaryLocationCalculationNull_ThrowsArgumentNullException() + public void Constructor_ConstructionPropertiesNull_ThrowsArgumentNullException() { // Call TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(new TestHydraulicBoundaryLocation(), null); // Assert string paramName = Assert.Throws(test).ParamName; - Assert.AreEqual("hydraulicBoundaryLocationCalculation", paramName); - } - - [Test] - public void Constructor_ConstructionPropertiesNull_ThrowsArgumentNullException() - { - // Call - TestDelegate test = () => new TestHydraulicBoundaryLocationProperties(new TestHydraulicBoundaryLocation(), - new HydraulicBoundaryLocationCalculation(), - null); - - // Assert - string paramName = Assert.Throws(test).ParamName; Assert.AreEqual("propertyIndexes", paramName); } @@ -252,7 +239,6 @@ // Call var hydraulicBoundaryLocationProperties = new TestHydraulicBoundaryLocationProperties( hydraulicBoundaryLocation, - new HydraulicBoundaryLocationCalculation(), new HydraulicBoundaryLocationProperties.ConstructionProperties { IllustrationPointsIndex = 1, @@ -304,23 +290,11 @@ public GeneralResult GeneralResult; public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation) - : base(hydraulicBoundaryLocation, - new HydraulicBoundaryLocationCalculation(), - new ConstructionProperties()) {} + : base(hydraulicBoundaryLocation, new ConstructionProperties()) {} - public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation, - HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation) - : base(hydraulicBoundaryLocation, - hydraulicBoundaryLocationCalculation, - new ConstructionProperties()) {} + public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation, ConstructionProperties propertyIndexes) + : base(hydraulicBoundaryLocation, propertyIndexes) {} - public TestHydraulicBoundaryLocationProperties(HydraulicBoundaryLocation hydraulicBoundaryLocation, - HydraulicBoundaryLocationCalculation hydraulicBoundaryLocationCalculation, - ConstructionProperties propertyIndexes) - : base(hydraulicBoundaryLocation, - hydraulicBoundaryLocationCalculation, - propertyIndexes) {} - protected override GeneralResult GetGeneralResult() { return GeneralResult;