Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r53cf7e65c1ee70a2ef0143eff830b650785bdf79 -rcfa21301665f4ca7122f6065fd83fad20b96843e --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 53cf7e65c1ee70a2ef0143eff830b650785bdf79) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision cfa21301665f4ca7122f6065fd83fad20b96843e) @@ -415,8 +415,8 @@ TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuUpdateEntryAndExitPointIndex, "Bijwerken intrede- en uittredepunt", - "", // TODO WTI-1076: update tooltip - null, // TODO WTI-1076: update icon + "Er moet een profielschematisatie geselecteerd zijn.", + RingtoetsCommonFormsResources.UpdateItemIcon, false); } } @@ -462,8 +462,8 @@ TestHelper.AssertContextMenuStripContainsItem(contextMenu, contextMenuUpdateEntryAndExitPointIndex, "Bijwerken intrede- en uittredepunt", - "", // TODO WTI-1076: update tooltip - null); // TODO WTI-1076: update icon + "Berekening bijwerken met de karakteristieke punten.", + RingtoetsCommonFormsResources.UpdateItemIcon); } } } @@ -501,7 +501,7 @@ var inputObserver = mocks.StrictMock(); inputObserver.Expect(obs => obs.UpdateObserver()); nodeData.WrappedData.InputParameters.Attach(inputObserver); - + var gui = mocks.Stub(); gui.Stub(cmp => cmp.Get(nodeData, treeViewControl)).Return(new CustomItemsOnlyContextMenuBuilder()); mocks.ReplayAll(); @@ -522,19 +522,19 @@ }); surfaceLine.SetDikeToeAtRiverAt(new Point3D(2, 0, 3)); surfaceLine.SetDikeToeAtPolderAt(new Point3D(3, 0, 0)); - + contextMenuStrip.Items[contextMenuUpdateEntryAndExitPointIndex].PerformClick(); // Then PipingInput inputParameters = calculation.InputParameters; Assert.AreEqual(new RoundedDouble(2, 2), inputParameters.EntryPointL); Assert.AreEqual(new RoundedDouble(3, 3), inputParameters.ExitPointL); - + // Note: observer assertions are verified in Teardown } } } - + [Test] public void GivenCalculationWithSurfaceLineAndOutput_WhenSurfaceLineUpdatedAndUpdateEntryAndExitPointClicked__ThenPointsUpdatedOutputsRemovedAndObserversNotified() {