Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresCalculationTest.cs =================================================================== diff -u -rcb903e8cdb76e9733979fe508ee097107c022a28 -rea180de6e9f5ba1108b4ff3cf7bb7e57de72a37a --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresCalculationTest.cs (.../HeightStructuresCalculationTest.cs) (revision cb903e8cdb76e9733979fe508ee097107c022a28) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Data.Test/HeightStructuresCalculationTest.cs (.../HeightStructuresCalculationTest.cs) (revision ea180de6e9f5ba1108b4ff3cf7bb7e57de72a37a) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using Core.Common.Base; using NUnit.Framework; using Ringtoets.Common.Data.Calculation; @@ -31,24 +30,10 @@ public class HeightStructuresCalculationTest { [Test] - public void Constructor_NullGeneralInput_ThrowsArgumentNullException() - { - // Call - TestDelegate test = () => new HeightStructuresCalculation(null); - - // Assert - var exception = Assert.Throws(test); - Assert.AreEqual("generalInputParameters", exception.ParamName); - } - - [Test] public void Constructor_DefaultPropertyValuesAreSet() { - // Setup - var generalInput = new GeneralHeightStructuresInput(); - // Call - var calculation = new HeightStructuresCalculation(generalInput); + var calculation = new HeightStructuresCalculation(); // Assert Assert.IsInstanceOf(calculation); @@ -64,8 +49,7 @@ public void ClearOutput_Always_SetsOutputToNull() { // Setup - var generalInput = new GeneralHeightStructuresInput(); - var calculation = new HeightStructuresCalculation(generalInput) + var calculation = new HeightStructuresCalculation { Output = new TestHeightStructuresOutput() }; @@ -81,8 +65,7 @@ public void HasOutput_OutputNull_ReturnsFalse() { // Setup - var generalInput = new GeneralHeightStructuresInput(); - var calculation = new HeightStructuresCalculation(generalInput) + var calculation = new HeightStructuresCalculation { Output = null }; @@ -95,8 +78,7 @@ public void HasOutput_OutputSet_ReturnsTrue() { // Setup - var generalInput = new GeneralHeightStructuresInput(); - var calculation = new HeightStructuresCalculation(generalInput) + var calculation = new HeightStructuresCalculation { Output = new TestHeightStructuresOutput() }; @@ -109,8 +91,7 @@ public void GetObservableInput_Always_ReturnsInputParameters() { // Setup - var generalInput = new GeneralHeightStructuresInput(); - var calculation = new HeightStructuresCalculation(generalInput); + var calculation = new HeightStructuresCalculation(); // Call ICalculationInput input = calculation.GetObservableInput(); @@ -123,8 +104,7 @@ public void GetObservableOutput_Always_ReturnsOutput() { // Setup - var generalInput = new GeneralHeightStructuresInput(); - var calculation = new HeightStructuresCalculation(generalInput) + var calculation = new HeightStructuresCalculation { Output = new TestHeightStructuresOutput() };