Index: Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationCalculationsContextTreeNodeInfoTest.cs =================================================================== diff -u -r34b41b7c2a23389f88d686f26e6e8e90fbdd645a -rb1d00f94d37eec65843f82a7924551561141c5a8 --- Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationCalculationsContextTreeNodeInfoTest.cs (.../DuneLocationCalculationsContextTreeNodeInfoTest.cs) (revision 34b41b7c2a23389f88d686f26e6e8e90fbdd645a) +++ Ringtoets/DuneErosion/test/Ringtoets.DuneErosion.Plugin.Test/TreeNodeInfos/DuneLocationCalculationsContextTreeNodeInfoTest.cs (.../DuneLocationCalculationsContextTreeNodeInfoTest.cs) (revision b1d00f94d37eec65843f82a7924551561141c5a8) @@ -144,7 +144,7 @@ // Setup using (var treeViewControl = new TreeViewControl()) { - var assessmentSection = mocks.Stub(); + IAssessmentSection assessmentSection = AssessmentSectionHelper.CreateAssessmentSectionStub(mocks); var context = new DuneLocationCalculationsContext(new ObservableList(), new DuneErosionFailureMechanism(), assessmentSection, @@ -225,56 +225,6 @@ } [Test] - public void ContextMenuStrip_FailureMechanismContributionZero_ContextMenuItemCalculateAllDisabledAndTooltipSet() - { - // Setup - string validFilePath = Path.Combine(testDataPath, "complete.sqlite"); - - using (var treeViewControl = new TreeViewControl()) - { - var assessmentSection = mocks.Stub(); - - assessmentSection.Stub(a => a.HydraulicBoundaryDatabase).Return(new HydraulicBoundaryDatabase - { - FilePath = validFilePath, - Version = "1.0" - }); - - var failureMechanism = new DuneErosionFailureMechanism(); - - var builder = new CustomItemsOnlyContextMenuBuilder(); - var context = new DuneLocationCalculationsContext(new ObservableList(), - failureMechanism, - assessmentSection, - () => 0.01, - "A"); - - var gui = mocks.Stub(); - gui.Stub(cmp => cmp.Get(context, treeViewControl)).Return(builder); - - mocks.ReplayAll(); - - plugin.Gui = gui; - - failureMechanism.SetDuneLocations(new[] - { - new TestDuneLocation() - }); - - // Call - using (ContextMenuStrip menu = info.ContextMenuStrip(context, null, treeViewControl)) - { - // Assert - TestHelper.AssertContextMenuStripContainsItem(menu, contextMenuCalculateAllIndex, - "Alles be&rekenen", - "De bijdrage van dit toetsspoor is nul.", - RingtoetsCommonFormsResources.CalculateAllIcon, - false); - } - } - } - - [Test] public void ContextMenuStrip_InvalidNorm_ContextMenuItemCalculateAllDisabledAndTooltipSet() { // Setup