Index: Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs =================================================================== diff -u -r624268bcc5f60b5965bb056ca72cea15daff06f3 -rc990bf404015584981f3ec1d22ecec12a7b037f3 --- Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision 624268bcc5f60b5965bb056ca72cea15daff06f3) +++ Ringtoets/Integration/test/Ringtoets.Integration.Plugin.Test/TreeNodeInfos/DesignWaterLevelLocationsContextTreeNodeInfoTest.cs (.../DesignWaterLevelLocationsContextTreeNodeInfoTest.cs) (revision c990bf404015584981f3ec1d22ecec12a7b037f3) @@ -124,11 +124,9 @@ public void ContextMenuStrip_Always_CallsContextMenuBuilderMethods() { // Setup - var menuBuilderMock = mockRepository.StrictMock(); var assessmentSection = mockRepository.Stub(); - var nodeData = new DesignWaterLevelLocationsContext(assessmentSection); - + var menuBuilderMock = mockRepository.StrictMock(); using (mockRepository.Ordered()) { menuBuilderMock.Expect(mb => mb.AddOpenItem()).Return(menuBuilderMock); @@ -139,6 +137,8 @@ menuBuilderMock.Expect(mb => mb.Build()).Return(null); } + var nodeData = new DesignWaterLevelLocationsContext(assessmentSection); + using (var treeViewControl = new TreeViewControl()) { var gui = mockRepository.Stub();