Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs =================================================================== diff -u -r66a3c8b86b4ada9239a31cfc47e6c1979c11e000 -r94a8faf16d9871c71e343cf4bb5e68531459fb20 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 66a3c8b86b4ada9239a31cfc47e6c1979c11e000) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 94a8faf16d9871c71e343cf4bb5e68531459fb20) @@ -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; @@ -50,33 +49,12 @@ var context = new HeightStructuresCalculationContext(calculation, parent, failureMechanism, assessmentSection); // Assert - Assert.IsInstanceOf, HeightStructuresFailureMechanism>>(context); - Assert.IsInstanceOf, HeightStructuresFailureMechanism>>(context); + Assert.IsInstanceOf>(context); Assert.AreSame(calculation, context.WrappedData); Assert.AreSame(parent, context.Parent); Assert.AreSame(failureMechanism, context.FailureMechanism); Assert.AreSame(assessmentSection, context.AssessmentSection); mocksRepository.VerifyAll(); } - - [Test] - public void ParameteredConstructor_ParentNull_ThrowsArgumentNullException() - { - // Setup - var mockRepository = new MockRepository(); - var assessmentSection = mockRepository.Stub(); - mockRepository.ReplayAll(); - - var calculation = new StructuresCalculation(); - var failureMechanism = new HeightStructuresFailureMechanism(); - - // Call - TestDelegate call = () => new HeightStructuresCalculationContext(calculation, null, failureMechanism, assessmentSection); - - // Assert - var exception = Assert.Throws(call); - Assert.AreEqual("parent", exception.ParamName); - mockRepository.VerifyAll(); - } } } \ No newline at end of file