Index: Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsCalculationGroupContextTest.cs =================================================================== diff -u -rcd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213 -r8b60c9e846480f3ffeeb263bfea5d3367bf6bee3 --- Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsCalculationGroupContextTest.cs (.../MacroStabilityInwardsCalculationGroupContextTest.cs) (revision cd90ebf744fb74f0d4b0dd6ee06f9c39b5faf213) +++ Ringtoets/MacroStabilityInwards/test/Ringtoets.MacroStabilityInwards.Forms.Test/PresentationObjects/MacroStabilityInwardsCalculationGroupContextTest.cs (.../MacroStabilityInwardsCalculationGroupContextTest.cs) (revision 8b60c9e846480f3ffeeb263bfea5d3367bf6bee3) @@ -19,7 +19,6 @@ // Stichting Deltares and remain full property of Stichting Deltares at all times. // All rights reserved. -using Core.Common.Base; using NUnit.Framework; using Rhino.Mocks; using Ringtoets.Common.Data.AssessmentSection; @@ -36,7 +35,9 @@ public class MacroStabilityInwardsCalculationGroupContextTest { [Test] - public void ParameteredConstructor_ExpectedValues() + [TestCase(true)] + [TestCase(false)] + public void ParameteredConstructor_ExpectedValues(bool withParent) { // Setup var mocks = new MockRepository(); @@ -53,16 +54,18 @@ new TestStochasticSoilModel() }; + CalculationGroup parent = withParent ? new CalculationGroup() : null; + var failureMechanism = new MacroStabilityInwardsFailureMechanism(); // Call - var groupContext = new MacroStabilityInwardsCalculationGroupContext(calculationGroup, surfaceLines, soilModels, failureMechanism, assessmentSection); + var groupContext = new MacroStabilityInwardsCalculationGroupContext(calculationGroup, parent, surfaceLines, soilModels, failureMechanism, assessmentSection); // Assert - Assert.IsInstanceOf(groupContext); Assert.IsInstanceOf>(groupContext); Assert.IsInstanceOf>(groupContext); Assert.AreSame(calculationGroup, groupContext.WrappedData); + Assert.AreSame(parent, groupContext.Parent); Assert.AreSame(surfaceLines, groupContext.AvailableMacroStabilityInwardsSurfaceLines); Assert.AreSame(soilModels, groupContext.AvailableStochasticSoilModels); Assert.AreSame(failureMechanism, groupContext.FailureMechanism);