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 { private static readonly MockRepository mocks = new MockRepository(); [SetUp] public void SetUp() {} [Test] public void Init() { var gui = mocks.Stub(); var app = mocks.StrictMock(); var settings = mocks.Stub(); var documentViews = mocks.Stub(); gui.Application = app; Expect.Call(gui.DocumentViews).Return(documentViews).Repeat.Any(); // in case of mock Expect.Call(app.UserSettings).Return(settings).Repeat.Any(); mocks.ReplayAll(); var pluginGui = new ProjectExplorerGuiPlugin { Gui = gui }; var projectTreeView = new ProjectTreeView(pluginGui); Assert.IsNotNull(projectTreeView); } } }