Index: Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/StandAloneFailureMechanismTreeNodeInfoTest.cs =================================================================== diff -u -r60f9f8cfadfe1b22e5989aa92ab9839c4623338d -r488f93fd7c9e36b9a5d1b1c5e7cf09dfefe69bae --- Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/StandAloneFailureMechanismTreeNodeInfoTest.cs (.../StandAloneFailureMechanismTreeNodeInfoTest.cs) (revision 60f9f8cfadfe1b22e5989aa92ab9839c4623338d) +++ Ringtoets/Integration/test/Ringtoets.Integration.Forms.Test/TreeNodeInfos/StandAloneFailureMechanismTreeNodeInfoTest.cs (.../StandAloneFailureMechanismTreeNodeInfoTest.cs) (revision 488f93fd7c9e36b9a5d1b1c5e7cf09dfefe69bae) @@ -21,7 +21,6 @@ using System.Drawing; using System.Linq; - using Core.Common.Base; using Core.Common.Base.Geometry; using Core.Common.Controls.TreeView; @@ -48,7 +47,6 @@ public class StandAloneFailureMechanismTreeNodeInfoTest { private MockRepository mocks; - private const int contextMenuRelevancyIndex = 0; [SetUp] public void SetUp() @@ -185,7 +183,7 @@ Assert.AreEqual("Uitvoer", outputFolder.Name); Assert.AreEqual(TreeFolderCategory.Output, outputFolder.Category); - var failureMechanismResultsContext = (FailureMechanismSectionResultContext)outputFolder.Contents[0]; + var failureMechanismResultsContext = (FailureMechanismSectionResultContext) outputFolder.Contents[0]; Assert.AreSame(failureMechanism, failureMechanismResultsContext.FailureMechanism); Assert.AreSame(failureMechanism.SectionResults, failureMechanismResultsContext.SectionResults); } @@ -219,7 +217,7 @@ // Assert Assert.AreEqual(1, children.Length); - var commentContext = (CommentContext)children[0]; + var commentContext = (CommentContext) children[0]; Assert.AreSame(failureMechanism, commentContext.CommentContainer); } mocks.VerifyAll(); @@ -348,12 +346,12 @@ RingtoetsCommonFormsResources.Checkbox_ticked); TestHelper.AssertContextMenuStripContainsItem(menu, 2, RingtoetsCommonFormsResources.Calculate_all, - RingtoetsCommonFormsResources.Calculate_all_ToolTip, + RingtoetsCommonFormsResources.FailureMechanism_CreateCalculateAllItem_No_calculations_to_run, RingtoetsCommonFormsResources.CalculateAllIcon, false); TestHelper.AssertContextMenuStripContainsItem(menu, 3, RingtoetsCommonFormsResources.Clear_all_output, - RingtoetsCommonFormsResources.Clear_all_output_ToolTip, + RingtoetsCommonFormsResources.CalculationGroup_ClearOutput_No_calculation_with_output_to_clear, RingtoetsCommonFormsResources.ClearIcon, false); } @@ -453,6 +451,8 @@ mocks.VerifyAll(); } + private const int contextMenuRelevancyIndex = 0; + private TreeNodeInfo GetInfo(RingtoetsGuiPlugin guiPlugin) { return guiPlugin.GetTreeNodeInfos().First(tni => tni.TagType == typeof(StandAloneFailureMechanismContext));