Index: Core/Plugins/test/Core.Plugins.Charting.Test/ChartingGuiPluginTest.cs =================================================================== diff -u -rf0c2a16f1d03185660d0ac6fbb5fce8bb5c2ee43 -r82f08332e2704e67c55e21de3eb4bd8fdab9b16c --- Core/Plugins/test/Core.Plugins.Charting.Test/ChartingGuiPluginTest.cs (.../ChartingGuiPluginTest.cs) (revision f0c2a16f1d03185660d0ac6fbb5fce8bb5c2ee43) +++ Core/Plugins/test/Core.Plugins.Charting.Test/ChartingGuiPluginTest.cs (.../ChartingGuiPluginTest.cs) (revision 82f08332e2704e67c55e21de3eb4bd8fdab9b16c) @@ -3,6 +3,7 @@ using Core.Common.Controls.Charting; using Core.Common.Gui; using Core.Common.Gui.Forms.MainWindow; +using Core.Common.Gui.Forms.ViewManager; using Core.Plugins.Charting.Forms; using Core.Plugins.Charting.Property; using Core.Plugins.CommonTools.Gui.Test; @@ -23,31 +24,34 @@ var applicationCore = mocks.Stub(); var pluginGui = new ChartingGuiPlugin(); var mainWindow = mocks.Stub(); - var toolWindowViews = new TestViewList(); - var documentViews = new TestViewList(); - var chartView = new ChartView(); + var dockingManager = mocks.Stub(); + using(var toolWindowViews = new ViewList(dockingManager, ViewLocation.Bottom)) + using (var documentViews = new ViewList(dockingManager, ViewLocation.Bottom)) + { + var chartView = new ChartView(); - gui.Expect(g => g.ApplicationCore).Return(applicationCore).Repeat.Any(); - gui.Expect(g => g.DocumentViews).Return(documentViews).Repeat.Any(); - gui.Expect(g => g.ToolWindowViews).Return(toolWindowViews).Repeat.Any(); - gui.Expect(g => g.MainWindow).Return(mainWindow).Repeat.Any(); - mainWindow.Expect(w => w.Visible).Return(true).Repeat.Any(); + gui.Expect(g => g.ApplicationCore).Return(applicationCore).Repeat.Any(); + gui.Expect(g => g.DocumentViews).Return(documentViews).Repeat.Any(); + gui.Expect(g => g.ToolWindowViews).Return(toolWindowViews).Repeat.Any(); + gui.Expect(g => g.MainWindow).Return(mainWindow).Repeat.Any(); + mainWindow.Expect(w => w.Visible).Return(true).Repeat.Any(); - mocks.ReplayAll(); + mocks.ReplayAll(); - documentViews.Add(chartView); + documentViews.Add(chartView); - pluginGui.Gui = gui; - pluginGui.Activate(); + pluginGui.Gui = gui; + pluginGui.Activate(); - documentViews.ActiveView = chartView; + documentViews.ActiveView = chartView; - var chartLegendView = gui.ToolWindowViews.OfType().FirstOrDefault(); + var chartLegendView = gui.ToolWindowViews.OfType().FirstOrDefault(); - Assert.IsNotNull(chartLegendView); - Assert.AreEqual(chartView.Data, chartLegendView.Data); + Assert.IsNotNull(chartLegendView); + Assert.AreEqual(chartView.Data, chartLegendView.Data); - mocks.VerifyAll(); + mocks.VerifyAll(); + } } [Test] Index: Core/Plugins/test/Core.Plugins.CommonTools.Gui.Test/Core.Plugins.CommonTools.Gui.Test.csproj =================================================================== diff -u -rf0c2a16f1d03185660d0ac6fbb5fce8bb5c2ee43 -r82f08332e2704e67c55e21de3eb4bd8fdab9b16c --- Core/Plugins/test/Core.Plugins.CommonTools.Gui.Test/Core.Plugins.CommonTools.Gui.Test.csproj (.../Core.Plugins.CommonTools.Gui.Test.csproj) (revision f0c2a16f1d03185660d0ac6fbb5fce8bb5c2ee43) +++ Core/Plugins/test/Core.Plugins.CommonTools.Gui.Test/Core.Plugins.CommonTools.Gui.Test.csproj (.../Core.Plugins.CommonTools.Gui.Test.csproj) (revision 82f08332e2704e67c55e21de3eb4bd8fdab9b16c) @@ -63,27 +63,16 @@ ..\..\..\..\packages\NUnit.2.6.4\lib\nunit.framework.dll True - - ..\..\..\..\packages\RhinoMocks.3.6.1\lib\net\Rhino.Mocks.dll - True - 3.5 - - - - False - ..\..\..\..\lib\TeeChart.dll - - @@ -92,14 +81,6 @@ {3bbfd65b-b277-4e50-ae6d-bd24c3434609} Core.Common.Base - - {43cd4cc3-8500-411b-822e-1d3b5af56fbc} - Core.Common.Controls.Charting - - - {1d27f91f-4e62-4eaf-a0a8-a32708b9a9b1} - Core.Common.Controls.TreeView - {08205620-D756-4533-922C-D6A4C0038535} Core.Common.Gui.Swf @@ -108,14 +89,6 @@ {F49BD8B2-332A-4C91-A196-8CCE0A2C7D98} Core.Common.Utils - - {D749EE4C-CE50-4C17-BF01-9A953028C126} - Core.Common.TestUtil - - - {e0990383-fb2e-47d1-99cd-9b9fa2929e5b} - Core.Common.Test - {93E73FAB-FAE8-49C6-9ABB-27D24DF761F6} Core.Plugins.CommonTools.Gui @@ -132,10 +105,6 @@ {30E4C2AE-719E-4D70-9FA9-668A9767FBFA} Core.Common.Gui - - {16050ED1-3E4F-4540-9B5D-6ADD4FC43D9D} - Core.Plugins.Charting - Fisheye: Tag 82f08332e2704e67c55e21de3eb4bd8fdab9b16c refers to a dead (removed) revision in file `Core/Plugins/test/Core.Plugins.CommonTools.Gui.Test/TestViewList.cs'. Fisheye: No comparison available. Pass `N' to diff?