Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs =================================================================== diff -u -r20e9bfea15dfe132ee137283a9f24bc4c413ce4a -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs (.../HeightStructuresCalculationGroupContextTest.cs) (revision 20e9bfea15dfe132ee137283a9f24bc4c413ce4a) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs (.../HeightStructuresCalculationGroupContextTest.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3) @@ -33,7 +33,9 @@ public class HeightStructuresCalculationGroupContextTest { [Test] - public void ParameteredConstructor_ExpectedValues() + [TestCase(true)] + [TestCase(false)] + public void ParameteredConstructor_ExpectedValues(bool withParent) { // Setup var mockRepository = new MockRepository(); @@ -43,13 +45,16 @@ var calculationGroup = new CalculationGroup(); var failureMechanism = new HeightStructuresFailureMechanism(); + CalculationGroup parent = withParent ? new CalculationGroup() : null; + // Call - var groupContext = new HeightStructuresCalculationGroupContext(calculationGroup, failureMechanism, assessmentSection); + var groupContext = new HeightStructuresCalculationGroupContext(calculationGroup, parent, failureMechanism, assessmentSection); // Assert Assert.IsInstanceOf>(groupContext); Assert.IsInstanceOf>(groupContext); Assert.AreSame(calculationGroup, groupContext.WrappedData); + Assert.AreSame(parent, groupContext.Parent); Assert.AreSame(failureMechanism, groupContext.FailureMechanism); Assert.AreSame(assessmentSection, groupContext.AssessmentSection); Assert.AreSame(failureMechanism.ForeshoreProfiles, groupContext.AvailableForeshoreProfiles);