public void AssertItWillAttachToProjectLoad()
        {
            var projectLoaderSpy = new SpyIProjectLoader();

            SetupClass(projectLoader: projectLoaderSpy);

            Assert.AreEqual(1, projectLoaderSpy.AttachedListeners.Count());
        }
        public void WhenNewProjectIsLoadedItWillBeAddedToTheViewModel()
        {
            var spyIProjectLoader = new SpyIProjectLoader();
            var stubProject = new StubIProject();
            var projectExplorerItemFactory = new StubIProjectExplorerItemFactory
            {
                CreateIFile = value => new ProjectExplorerItem(value, null)
            };

            var viewModel = SetupClass(projectLoader: spyIProjectLoader,
                projectExplorerItemFactory: projectExplorerItemFactory);

            spyIProjectLoader.RaiseProjectLoadedEvent(stubProject);

            Assert.AreEqual(1, viewModel.Items.Count());
        }