using System.Configuration; using Core.Common.Base; using Core.Common.Gui; using NUnit.Framework; using Rhino.Mocks; namespace Core.Plugins.ProjectExplorer.Tests { [TestFixture] public class ProjectTreeViewTest { [Test] public void Init() { var mocks = new MockRepository(); var gui = mocks.Stub(); var documentViews = mocks.Stub(); var settings = mocks.Stub(); Expect.Call(gui.DocumentViews).Return(documentViews).Repeat.Any(); mocks.ReplayAll(); var app = new RingtoetsApplication { UserSettings = settings }; gui.Application = app; var pluginGui = new ProjectExplorerGuiPlugin { Gui = gui }; var projectTreeView = new ProjectTreeView(pluginGui); Assert.IsNotNull(projectTreeView); mocks.VerifyAll(); } } }