Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs =================================================================== diff -u -rca23b1b155ca87c0aa4665fd919727570f31c781 -r7823eab06c968c167d9d5b24a30acaa344478dc0 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision ca23b1b155ca87c0aa4665fd919727570f31c781) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresInputContextTest.cs (.../HeightStructuresInputContextTest.cs) (revision 7823eab06c968c167d9d5b24a30acaa344478dc0) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using System; using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; @@ -34,25 +33,6 @@ public class HeightStructuresInputContextTest { [Test] - public void Constructor_CalcationIsNull_ThrowsArgumentNullException() - { - // Setup - var mocks = new MockRepository(); - var assessmentSectionMock = mocks.Stub(); - mocks.ReplayAll(); - - var failureMechanism = new HeightStructuresFailureMechanism(); - - // Call - TestDelegate test = () => new HeightStructuresInputContext(null, failureMechanism, assessmentSectionMock); - - // Assert - string paramName = Assert.Throws(test).ParamName; - Assert.AreEqual("calculation", paramName); - mocks.VerifyAll(); - } - - [Test] public void Constructor_ValidInputParameters_ExpectedValues() { // Setup @@ -64,10 +44,13 @@ var failureMechanism = new HeightStructuresFailureMechanism(); // Call - var context = new HeightStructuresInputContext(calculation, failureMechanism, assessmentSectionMock); + var context = new HeightStructuresInputContext(calculation.InputParameters, + calculation, + failureMechanism, + assessmentSectionMock); // Assert - Assert.IsInstanceOf>(context); + Assert.IsInstanceOf>(context); Assert.AreSame(calculation.InputParameters, context.WrappedData); Assert.AreSame(calculation, context.Calculation); Assert.AreSame(failureMechanism, context.FailureMechanism);