Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs =================================================================== diff -u -r224c42bc350805701228423a2d79c6cf699a9453 -re367256a3541d59406b2bc30c7b451511c26324c --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs (.../HeightStructuresCalculationGroupContextTest.cs) (revision 224c42bc350805701228423a2d79c6cf699a9453) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Forms.Test/PresentationObjects/HeightStructuresCalculationGroupContextTest.cs (.../HeightStructuresCalculationGroupContextTest.cs) (revision e367256a3541d59406b2bc30c7b451511c26324c) @@ -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);