Index: Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs =================================================================== diff -u -ree0a1bf9c52c6de7510683c5febf80d3e9922cf3 -rb1d00f94d37eec65843f82a7924551561141c5a8 --- Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision ee0a1bf9c52c6de7510683c5febf80d3e9922cf3) +++ Ringtoets/DuneErosion/src/Ringtoets.DuneErosion.Plugin/DuneErosionPlugin.cs (.../DuneErosionPlugin.cs) (revision b1d00f94d37eec65843f82a7924551561141c5a8) @@ -361,14 +361,8 @@ #region DuneLocationCalculationsContext TreeNodeInfo private static string ValidateAllDataAvailableAndGetErrorMessage(IAssessmentSection assessmentSection, - double failureMechanismContribution, double norm) { - if (failureMechanismContribution <= 0.0) - { - return RingtoetsCommonFormsResources.Contribution_of_failure_mechanism_zero; - } - string errorMessage = HydraulicBoundaryDatabaseConnectionValidator.Validate(assessmentSection.HydraulicBoundaryDatabase); if (string.IsNullOrEmpty(errorMessage)) @@ -399,7 +393,6 @@ }); string validationText = ValidateAllDataAvailableAndGetErrorMessage(context.AssessmentSection, - context.FailureMechanism.Contribution, context.GetNormFunc()); if (!string.IsNullOrEmpty(validationText)) 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