Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs =================================================================== diff -u -r224c42bc350805701228423a2d79c6cf699a9453 -r9fa7ee9094a12a8e3feded4a9dbbdbec34a665a5 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 224c42bc350805701228423a2d79c6cf699a9453) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationContextTest.cs (.../HeightStructuresCalculationContextTest.cs) (revision 9fa7ee9094a12a8e3feded4a9dbbdbec34a665a5) @@ -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(); } }