Index: Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs =================================================================== diff -u -rd22599fe4937beb7793311d5383edc34e6b19ad8 -r9194a3e3b03175688e3b7e7aab07f06a8ce02500 --- Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision d22599fe4937beb7793311d5383edc34e6b19ad8) +++ Ringtoets/GrassCoverErosionOutwards/test/Ringtoets.GrassCoverErosionOutwards.Plugin.Test/TreeNodeInfos/GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs (.../GrassCoverErosionOutwardsWaveConditionsCalculationGroupContextTreeNodeInfoTest.cs) (revision 9194a3e3b03175688e3b7e7aab07f06a8ce02500) @@ -1443,20 +1443,29 @@ using (var treeViewControl = new TreeViewControl()) { var group = new CalculationGroup(); - var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism(); - var assessmentSectionStub = mocks.Stub(); - assessmentSectionStub.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + var hydraulicBoundaryLocation1 = new HydraulicBoundaryLocation(1, "1", 1, 1); + var hydraulicBoundaryLocation2 = new HydraulicBoundaryLocation(2, "2", 2, 2); + var failureMechanism = new GrassCoverErosionOutwardsFailureMechanism { + HydraulicBoundaryLocations = + { + hydraulicBoundaryLocation1, + hydraulicBoundaryLocation2 + } + }; + var assessmentSection = mocks.Stub(); + assessmentSection.HydraulicBoundaryDatabase = new HydraulicBoundaryDatabase + { Locations = { - new HydraulicBoundaryLocation(1, "1", 1, 1) + hydraulicBoundaryLocation1, + hydraulicBoundaryLocation2 } }; - var observerMock = mocks.StrictMock(); var nodeData = new GrassCoverErosionOutwardsWaveConditionsCalculationGroupContext(group, failureMechanism, - assessmentSectionStub); + assessmentSection); var menuBuilder = new CustomItemsOnlyContextMenuBuilder(); var mainWindow = mocks.Stub(); @@ -1470,7 +1479,6 @@ mocks.ReplayAll(); plugin.Gui = gui; - nodeData.Attach(observerMock); HydraulicBoundaryLocationSelectionDialog dialog = null; DataGridViewControl grid = null; @@ -1479,6 +1487,7 @@ dialog = (HydraulicBoundaryLocationSelectionDialog) new FormTester(name).TheObject; grid = (DataGridViewControl) new ControlTester("DataGridViewControl", dialog).TheObject; grid.Rows[0].Cells[0].Value = true; + grid.Rows[1].Cells[0].Value = true; new ButtonTester("CustomCancelButton", dialog).Click(); };