Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r01e8d3f7c86b2cc7e52606d71e97bd40431a2b25 -r65991df4e411780df91b7005b669d41b51170b3b --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 01e8d3f7c86b2cc7e52606d71e97bd40431a2b25) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) @@ -828,7 +828,7 @@ } [Test] - public void ContextMenuStrip_WithForeshoreProfileAndChanges_ContextMenuItemUpdateForeshoreProfilesEnabled() + public void ContextMenuStrip_CalculationGroupWithCalculationWithForeshoreProfileAndInputOutOfSync_ContextMenuItemUpdateForeshoreProfilesEnabledAndToolTipSet() { // Setup var assessmentSectionStub = mocks.Stub(); @@ -840,7 +840,6 @@ ForeshoreProfile = new TestForeshoreProfile() } }; - calculation.InputParameters.UseBreakWater = true; var nodeData = new HeightStructuresCalculationGroupContext( new CalculationGroup @@ -861,6 +860,8 @@ plugin.Gui = guiStub; + calculation.InputParameters.UseBreakWater = true; + // Call using (ContextMenuStrip menu = info.ContextMenuStrip(nodeData, null, treeViewControl)) { @@ -875,7 +876,7 @@ } [Test] - public void GivenCalculationWithForeshoreProfileSet_WhenUpdatingForeshoreProfileFromContextMenu_ThenCalculationInputUpdatedAndObserverNotified() + public void GivenCalculationWithoutOutputAndWithInputOutOfSync_WhenUpdateForeshoreProfilesClicked_ThenNoInquiryAndCalculationUpdatedAndInputObserverNotified() { // Given var calculationObserver = mocks.StrictMock(); @@ -892,7 +893,6 @@ ForeshoreProfile = new TestForeshoreProfile(true) } }; - calculation.InputParameters.UseBreakWater = false; var nodeData = new HeightStructuresCalculationGroupContext( new CalculationGroup @@ -916,6 +916,8 @@ plugin.Gui = guiStub; + calculation.InputParameters.UseBreakWater = false; + using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { // Precondition