Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r8dc7980c928c8e808007aa66dacaa01ee6fe47fb -r50270a48a7cdc395d4fc4b964a42730740fb15ee --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 8dc7980c928c8e808007aa66dacaa01ee6fe47fb) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 50270a48a7cdc395d4fc4b964a42730740fb15ee) @@ -1625,99 +1625,6 @@ } [Test] - public void GivenCalculationWithOutputAndInputInSync_WhenUpdateEntryAndExitPointsClicked_ThenNoInquiryAndCalculationNotUpdatedAndObserversNotNotified() - { - // Setup - using (var treeViewControl = new TreeViewControl()) - { - var calculation1Observer = mocks.StrictMock(); - var calculation1InputObserver = mocks.StrictMock(); - var calculation2Observer = mocks.StrictMock(); - var calculation2InputObserver = mocks.StrictMock(); - - var surfaceLine = new RingtoetsPipingSurfaceLine(); - surfaceLine.SetGeometry(new[] - { - new Point3D(1, 2, 3), - new Point3D(4, 5, 6) - }); - - var calculation1 = new PipingCalculationScenario(new GeneralPipingInput()) - { - InputParameters = - { - SurfaceLine = surfaceLine - }, - Output = new TestPipingOutput(), - SemiProbabilisticOutput = new TestPipingSemiProbabilisticOutput() - }; - calculation1.Attach(calculation1Observer); - calculation1.InputParameters.Attach(calculation1InputObserver); - - var calculation2 = new PipingCalculationScenario(new GeneralPipingInput()) - { - InputParameters = - { - SurfaceLine = surfaceLine - }, - Output = new TestPipingOutput(), - SemiProbabilisticOutput = new TestPipingSemiProbabilisticOutput() - }; - calculation2.Attach(calculation2Observer); - calculation2.InputParameters.Attach(calculation2InputObserver); - - var childGroup = new CalculationGroup(); - childGroup.Children.Add(calculation1); - - var emptyChildGroup = new CalculationGroup(); - var group = new CalculationGroup(); - var parentGroup = new CalculationGroup(); - - group.Children.Add(childGroup); - group.Children.Add(emptyChildGroup); - group.Children.Add(calculation2); - - var pipingFailureMechanism = new PipingFailureMechanism(); - IAssessmentSection assessmentSectionStub = AssessmentSectionHelper.CreateAssessmentSectionStubWithoutBoundaryDatabase( - pipingFailureMechanism, mocks); - - var nodeData = new PipingCalculationGroupContext(group, - Enumerable.Empty(), - Enumerable.Empty(), - pipingFailureMechanism, - assessmentSectionStub); - var parentNodeData = new PipingCalculationGroupContext(parentGroup, - Enumerable.Empty(), - Enumerable.Empty(), - pipingFailureMechanism, - assessmentSectionStub); - - var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); - - var mainWindow = mocks.Stub(); - var gui = mocks.Stub(); - gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(menuBuilder); - gui.Stub(g => g.MainWindow).Return(mainWindow); - gui.Stub(cmp => cmp.ViewCommands).Return(mocks.Stub()); - mocks.ReplayAll(); - - plugin.Gui = gui; - - using (ContextMenuStrip contextMenu = info.ContextMenuStrip(nodeData, parentNodeData, treeViewControl)) - { - // When - contextMenu.Items[contextMenuUpdateEntryAndExitPointsAllIndexNestedGroup].PerformClick(); - - // Then - Assert.IsTrue(calculation1.HasOutput); - Assert.IsTrue(calculation1.InputParameters.IsEntryAndExitPointInputSynchronized); - Assert.IsTrue(calculation2.HasOutput); - Assert.IsTrue(calculation2.InputParameters.IsEntryAndExitPointInputSynchronized); - } - } - } - - [Test] public void GivenCalculationWithOutputAndInputOutOfSync_WhenUpdateEntryAndExitPointsClickedAndCancelled_ThenInquiryAndCalculationNotUpdatedAndObserversNotNotified() { // Setup