Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r01e8d3f7c86b2cc7e52606d71e97bd40431a2b25 -r65991df4e411780df91b7005b669d41b51170b3b --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 01e8d3f7c86b2cc7e52606d71e97bd40431a2b25) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) @@ -760,7 +760,7 @@ } [Test] - public void ContextMenuStrip_WithForeshoreProfileAndChanges_ContextMenuItemUpdateForeshoreProfileEnabled() + public void ContextMenuStrip_CalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfileEnabledAndToolTipSet() { // Setup var assessmentSectionStub = mocks.Stub(); @@ -772,7 +772,6 @@ ForeshoreProfile = new TestForeshoreProfile() } }; - calculation.InputParameters.UseBreakWater = true; var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); @@ -785,6 +784,8 @@ plugin.Gui = gui; + calculation.InputParameters.UseBreakWater = true; + // Call using (ContextMenuStrip menu = info.ContextMenuStrip(nodeData, null, treeViewControl)) { @@ -799,7 +800,7 @@ } [Test] - public void GivenCalculationWithForeshoreProfileSet_WhenUpdatingForeshoreProfileFromContextMenu_ThenCalculationUpdatedAndUpdateObserver() + public void GivenCalculationWithoutOutputAndWithInputOutOfSync_WhenUpdateForeshoreProfileClicked_ThenNoInquiryAndCalculationUpdatedAndInputObserverNotified() { // Given var calculationObserver = mocks.StrictMock(); @@ -816,7 +817,6 @@ ForeshoreProfile = new TestForeshoreProfile(true) } }; - calculation.InputParameters.UseBreakWater = false; var nodeData = new ClosingStructuresCalculationContext(calculation, failureMechanism, assessmentSectionStub); @@ -832,6 +832,8 @@ plugin.Gui = gui; + calculation.InputParameters.UseBreakWater = false; + using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { // Precondition