Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs =================================================================== diff -u -r4bf59bb3506b840b284efe0c0f4431b7876e0e5b -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 4bf59bb3506b840b284efe0c0f4431b7876e0e5b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3) @@ -22,6 +22,7 @@ using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; +using Ringtoets.Common.Data.Calculation; using Ringtoets.Common.Data.Structures; using Ringtoets.Common.Forms.PresentationObjects; using Ringtoets.HeightStructures.Data; @@ -42,16 +43,18 @@ var calculation = new StructuresCalculation(); var failureMechanism = new HeightStructuresFailureMechanism(); + var parent = new CalculationGroup(); // Call - var context = new HeightStructuresCalculationContext(calculation, failureMechanism, assessmentSection); + var context = new HeightStructuresCalculationContext(calculation, parent, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf, HeightStructuresFailureMechanism>>(context); Assert.IsInstanceOf, HeightStructuresFailureMechanism>>(context); - Assert.AreEqual(calculation, context.WrappedData); - Assert.AreEqual(failureMechanism, context.FailureMechanism); - Assert.AreEqual(assessmentSection, context.AssessmentSection); + Assert.AreSame(calculation, context.WrappedData); + Assert.AreSame(parent, context.Parent); + Assert.AreSame(failureMechanism, context.FailureMechanism); + Assert.AreSame(assessmentSection, context.AssessmentSection); mocksRepository.VerifyAll(); } }