Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rdfbf2e0e5fbb7cc2f3e51d55826c3772186b345b -r30fda42458cc260e4780cf68e01577204d0e41fd --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision dfbf2e0e5fbb7cc2f3e51d55826c3772186b345b) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision 30fda42458cc260e4780cf68e01577204d0e41fd) @@ -437,54 +437,6 @@ } [Test] - public void GivenCalculationWithOutputAndInputInSync_WhenUpdateDikeProfileClicked_ThenNoInquiryAndCalculationNotUpdatedAndObserversNotNotified() - { - // Given - var assessmentSection = mocks.Stub(); - var dikeProfile = new TestDikeProfile(); - var calculation = new GrassCoverErosionInwardsCalculation - { - InputParameters = - { - DikeProfile = dikeProfile - }, - Output = new TestGrassCoverErosionInwardsOutput() - }; - - var failureMechanism = new GrassCoverErosionInwardsFailureMechanism(); - var nodeData = new GrassCoverErosionInwardsCalculationContext(calculation, failureMechanism, assessmentSection); - - var inputObserver = mocks.StrictMock(); - calculation.InputParameters.Attach(inputObserver); - - var calculationObserver = mocks.StrictMock(); - calculation.Attach(calculationObserver); - - using (var treeViewControl = new TreeViewControl()) - { - var mainWindow = mocks.Stub(); - var gui = mocks.Stub(); - gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); - gui.Stub(g => g.MainWindow).Return(mainWindow); - mocks.ReplayAll(); - - plugin.Gui = gui; - - using (ContextMenuStrip menu = info.ContextMenuStrip(nodeData, assessmentSection, treeViewControl)) - { - // When - menu.Items[contextMenuUpdateDikeProfileIndex].PerformClick(); - - // Then - Assert.IsTrue(calculation.HasOutput); - Assert.IsTrue(calculation.InputParameters.IsDikeProfileInputSynchronized); - - // Note: observer assertions are verified in the TearDown() - } - } - } - - [Test] public void GivenCalculationWithOutputAndInputOutOfSync_WhenUpdateDikeProfileClickedAndCancelled_ThenInquiryAndCalculationNotUpdatedAndObserversNotNotified() { // Given