Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r92210258706d0f57e05552037b676bd941a6fe19 -r71d8173532c9c038e25caf03e296beb8e8f9cbe8 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 92210258706d0f57e05552037b676bd941a6fe19) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 71d8173532c9c038e25caf03e296beb8e8f9cbe8) @@ -69,24 +69,6 @@ private MockRepository mocks; private ClosingStructuresPlugin plugin; - public override void Setup() - { - mocks = new MockRepository(); - gui = mocks.Stub(); - plugin = new ClosingStructuresPlugin - { - Gui = gui - }; - - info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(ClosingStructuresCalculationContext)); - } - - public override void TearDown() - { - plugin.Dispose(); - mocks.VerifyAll(); - } - [Test] public void Initialized_Always_ExpectedPropertiesSet() { @@ -180,7 +162,7 @@ Assert.IsNotNull(closingStructuresInputContext); Assert.AreSame(calculationContext.WrappedData.InputParameters, closingStructuresInputContext.WrappedData); - Assert.IsInstanceOf(children[2]); + Assert.IsInstanceOf(children[2]); } [Test] @@ -979,7 +961,9 @@ assessmentSection.Stub(a => a.Id).Return(string.Empty); assessmentSection.Stub(a => a.FailureMechanismContribution).Return(new FailureMechanismContribution(Enumerable.Empty(), 1, 1)); - var initialOutput = new ProbabilityAssessmentOutput(double.NaN, double.NaN, double.NaN, double.NaN, double.NaN); + var initialProbabilityAssessmentOutput = + new ProbabilityAssessmentOutput(double.NaN, double.NaN, double.NaN, double.NaN, double.NaN); + var initialOutput = new StructuresOutput(initialProbabilityAssessmentOutput); var calculation = new TestClosingStructuresCalculation { Output = initialOutput, @@ -1159,6 +1143,24 @@ Assert.IsNull(result.Calculation); } + public override void Setup() + { + mocks = new MockRepository(); + gui = mocks.Stub(); + plugin = new ClosingStructuresPlugin + { + Gui = gui + }; + + info = plugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(ClosingStructuresCalculationContext)); + } + + public override void TearDown() + { + plugin.Dispose(); + mocks.VerifyAll(); + } + private static void ChangeStructure(ClosingStructure structure) { structure.CopyProperties(new ClosingStructure(