Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r65991df4e411780df91b7005b669d41b51170b3b -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -350,7 +350,8 @@ contextMenuUpdateStructureIndex, "&Bijwerken kunstwerk...", "Er zijn geen wijzigingen om bij te werken.", - RingtoetsCommonFormsResources.UpdateItemIcon, false); + RingtoetsCommonFormsResources.UpdateItemIcon, + false); } } } @@ -431,7 +432,6 @@ menu.Items[contextMenuUpdateStructureIndex].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsStructureInputSynchronized); // Note: observer assertions are verified in the TearDown() @@ -836,18 +836,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } Index: Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r65991df4e411780df91b7005b669d41b51170b3b -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) +++ Ringtoets/ClosingStructures/test/Ringtoets.ClosingStructures.Plugin.Test/TreeNodeInfos/ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../ClosingStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -760,18 +760,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } @@ -1211,7 +1204,6 @@ menu.Items[contextMenuUpdateStructureAllIndexRootGroup].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsStructureInputSynchronized); // Note: observer assertions are verified in the TearDown() Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r8a482f64da54bd72583411ba20668c58b2ae0184 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision 8a482f64da54bd72583411ba20668c58b2ae0184) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -428,7 +428,6 @@ menu.Items[contextMenuUpdateDikeProfileIndex].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsDikeProfileInputSynchronized); // Note: observer assertions are verified in the TearDown() Index: Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r2c7c991c5f2f2ef73d6683daad93d07ddb73ad6c -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 2c7c991c5f2f2ef73d6683daad93d07ddb73ad6c) +++ Ringtoets/GrassCoverErosionInwards/test/Ringtoets.GrassCoverErosionInwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -707,9 +707,7 @@ menu.Items[contextMenuUpdateDikeProfileAllIndexRootGroup].PerformClick(); // Then - Assert.IsFalse(calculation1.HasOutput); Assert.IsTrue(calculation1.InputParameters.IsDikeProfileInputSynchronized); - Assert.IsFalse(calculation2.HasOutput); Assert.IsTrue(calculation2.InputParameters.IsDikeProfileInputSynchronized); // Note: observer assertions are verified in the TearDown() Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rf34442707f3ce22e015d08369e39d4830b856362 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f34442707f3ce22e015d08369e39d4830b856362) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -765,10 +765,7 @@ { // Setup var assessmentSectionStub = mocks.Stub(); - var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism - { - Contribution = 5 - }; + var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { InputParameters = @@ -813,10 +810,7 @@ calculationInputObserver.Expect(o => o.UpdateObserver()); var assessmentSectionStub = mocks.Stub(); - var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism - { - Contribution = 5 - }; + var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); var calculation = new GrassCoverErosionOutwardsWaveConditionsCalculation { @@ -845,18 +839,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } @@ -920,13 +907,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - validateMenuItemIndex, - "&Valideren", - "Valideer de invoer voor deze berekening.", - RingtoetsCommonFormsResources.ValidateIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[validateMenuItemIndex]; Action call = () => validateMenuItem.PerformClick(); @@ -1228,13 +1208,6 @@ using (new HydraRingCalculatorFactoryConfig()) using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - calculateMenuItemIndex, - "Be&rekenen", - "Voer deze berekening uit.", - RingtoetsCommonFormsResources.CalculateIcon); - // When ToolStripItem calculateMenuItem = contextMenu.Items[calculateMenuItemIndex]; Action call = () => calculateMenuItem.PerformClick(); @@ -1402,13 +1375,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - clearOutputMenuItemIndex, - "&Wis uitvoer...", - "Wis de uitvoer van deze berekening.", - RingtoetsCommonFormsResources.ClearIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[clearOutputMenuItemIndex]; validateMenuItem.PerformClick(); Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rf4482775f2eb7284ee8caf72993d8688adc5907d -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision f4482775f2eb7284ee8caf72993d8688adc5907d) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -1339,13 +1339,6 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); @@ -1438,13 +1431,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - contextMenuAddCalculationIndexRootGroup, - "Berekening &toevoegen", - "Voeg een nieuwe berekening toe aan deze berekeningsmap.", - RingtoetsCommonFormsResources.FailureMechanismIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[contextMenuAddCalculationIndexRootGroup]; validateMenuItem.PerformClick(); Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -r65991df4e411780df91b7005b669d41b51170b3b -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -350,7 +350,8 @@ contextMenuUpdateStructureIndex, "&Bijwerken kunstwerk...", "Er zijn geen wijzigingen om bij te werken.", - RingtoetsCommonFormsResources.UpdateItemIcon, false); + RingtoetsCommonFormsResources.UpdateItemIcon, + false); } } } @@ -437,7 +438,6 @@ menu.Items[contextMenuUpdateStructureIndex].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsStructureInputSynchronized); // Note: observer assertions are verified in the TearDown() @@ -982,18 +982,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } Index: Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r65991df4e411780df91b7005b669d41b51170b3b -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 65991df4e411780df91b7005b669d41b51170b3b) +++ Ringtoets/HeightStructures/test/Ringtoets.HeightStructures.Plugin.Test/TreeNodeInfos/HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../HeightStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -920,18 +920,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } @@ -1366,7 +1359,6 @@ menu.Items[contextMenuUpdateStructureAllIndexRootGroup].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsStructureInputSynchronized); // Note: observer assertions are verified in the TearDown() Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r9ac9793e704fce8e72b49a0575c47ae1628044af -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 9ac9793e704fce8e72b49a0575c47ae1628044af) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationGroupContextTreeNodeInfoTest.cs (.../PipingCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -1618,9 +1618,7 @@ contextMenu.Items[contextMenuUpdateEntryAndExitPointsAllIndexNestedGroup].PerformClick(); // Then - Assert.IsFalse(calculation1.HasOutput); Assert.IsTrue(calculation1.InputParameters.IsEntryAndExitPointInputSynchronized); - Assert.IsFalse(calculation2.HasOutput); Assert.IsTrue(calculation2.InputParameters.IsEntryAndExitPointInputSynchronized); } } Index: Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs =================================================================== diff -u -r9ac9793e704fce8e72b49a0575c47ae1628044af -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 9ac9793e704fce8e72b49a0575c47ae1628044af) +++ Ringtoets/Piping/test/Ringtoets.Piping.Plugin.Test/TreeNodeInfos/PipingCalculationScenarioContextTreeNodeInfoTest.cs (.../PipingCalculationScenarioContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -564,7 +564,6 @@ contextMenuStrip.Items[contextMenuUpdateEntryAndExitPointIndex].PerformClick(); // Then - Assert.IsFalse(calculation.HasOutput); Assert.IsTrue(calculation.InputParameters.IsEntryAndExitPointInputSynchronized); // Note: observer assertions are verified in TearDown Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rf34442707f3ce22e015d08369e39d4830b856362 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision f34442707f3ce22e015d08369e39d4830b856362) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -520,18 +520,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } Index: Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r638081278e33e132e3ffedd52fff0d6c00ab4728 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 638081278e33e132e3ffedd52fff0d6c00ab4728) +++ Ringtoets/StabilityPointStructures/test/Ringtoets.StabilityPointStructures.Plugin.Test/TreeNodeInfos/StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityPointStructuresCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -738,18 +738,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rf34442707f3ce22e015d08369e39d4830b856362 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f34442707f3ce22e015d08369e39d4830b856362) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -806,18 +806,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } @@ -879,13 +872,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - validateMenuItemIndex, - "&Valideren", - "Valideer de invoer voor deze berekening.", - RingtoetsCommonFormsResources.ValidateIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[validateMenuItemIndex]; Action call = () => validateMenuItem.PerformClick(); @@ -1118,13 +1104,6 @@ using (new HydraRingCalculatorFactoryConfig()) using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - calculateMenuItemIndex, - "Be&rekenen", - "Voer deze berekening uit.", - RingtoetsCommonFormsResources.CalculateIcon); - // When ToolStripItem calculateMenuItem = contextMenu.Items[calculateMenuItemIndex]; Action call = () => calculateMenuItem.PerformClick(); @@ -1297,13 +1276,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - clearOutputMenuItemIndex, - "&Wis uitvoer...", - "Wis de uitvoer van deze berekening.", - RingtoetsCommonFormsResources.ClearIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[clearOutputMenuItemIndex]; validateMenuItem.PerformClick(); Index: Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3315fbc02924bb6efe899f2aaea73889c999e2e6 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 3315fbc02924bb6efe899f2aaea73889c999e2e6) +++ Ringtoets/StabilityStoneCover/test/Ringtoets.StabilityStoneCover.Plugin.Test/TreeNodeInfos/StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../StabilityStoneCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -1428,13 +1428,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - contextMenuAddCalculationIndexRootGroup, - "Berekening &toevoegen", - "Voeg een nieuwe berekening toe aan deze berekeningsmap.", - RingtoetsCommonFormsResources.FailureMechanismIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[contextMenuAddCalculationIndexRootGroup]; validateMenuItem.PerformClick(); @@ -1536,18 +1529,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs =================================================================== diff -u -rf34442707f3ce22e015d08369e39d4830b856362 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision f34442707f3ce22e015d08369e39d4830b856362) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -764,18 +764,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndex, - "&Bijwerken voorlandprofiel...", - "Berekening bijwerken met het voorlandprofiel.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndex].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } } @@ -844,13 +837,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - validateMenuItemIndex, - "&Valideren", - "Valideer de invoer voor deze berekening.", - RingtoetsCommonFormsResources.ValidateIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[validateMenuItemIndex]; Action call = () => validateMenuItem.PerformClick(); @@ -1096,13 +1082,6 @@ using (new HydraRingCalculatorFactoryConfig()) using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - calculateMenuItemIndex, - "Be&rekenen", - "Voer deze berekening uit.", - RingtoetsCommonFormsResources.CalculateIcon); - // When ToolStripItem calculateMenuItem = contextMenu.Items[calculateMenuItemIndex]; Action call = () => calculateMenuItem.PerformClick(); @@ -1272,13 +1251,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - clearOutputMenuItemIndex, - "&Wis uitvoer...", - "Wis de uitvoer van deze berekening.", - RingtoetsCommonFormsResources.ClearIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[clearOutputMenuItemIndex]; validateMenuItem.PerformClick(); Index: Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -r3315fbc02924bb6efe899f2aaea73889c999e2e6 -r41da80335e9db4b38a470de5b247f759ca497997 --- Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 3315fbc02924bb6efe899f2aaea73889c999e2e6) +++ Ringtoets/WaveImpactAsphaltCover/test/Ringtoets.WaveImpactAsphaltCover.Plugin.Test/TreeNodeInfos/WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../WaveImpactAsphaltCoverWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 41da80335e9db4b38a470de5b247f759ca497997) @@ -1418,13 +1418,6 @@ using (ContextMenuStrip contextMenu = info.ContextMenuStrip(context, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenu, - contextMenuAddCalculationIndexRootGroup, - "Berekening &toevoegen", - "Voeg een nieuwe berekening toe aan deze berekeningsmap.", - RingtoetsCommonFormsResources.FailureMechanismIcon); - // When ToolStripItem validateMenuItem = contextMenu.Items[contextMenuAddCalculationIndexRootGroup]; validateMenuItem.PerformClick(); @@ -1526,18 +1519,11 @@ using (ContextMenuStrip contextMenuStrip = info.ContextMenuStrip(nodeData, null, treeViewControl)) { - // Precondition - TestHelper.AssertContextMenuStripContainsItem(contextMenuStrip, - contextMenuUpdateForeshoreProfileIndexRootGroup, - "&Bijwerken voorlandprofielen...", - "Alle berekeningen met een voorlandprofiel bijwerken.", - RingtoetsCommonFormsResources.UpdateItemIcon); - // When contextMenuStrip.Items[contextMenuUpdateForeshoreProfileIndexRootGroup].PerformClick(); // Then - Assert.IsTrue(calculation.InputParameters.UseBreakWater); + Assert.IsTrue(calculation.InputParameters.IsForeshoreProfileInputSynchronized); } } }