Пример #1
0
        public void Init()
        {
            projectContent          = new MockProjectContent();
            pad.ProjectContent      = projectContent;
            solution                = new Solution();
            project                 = new MockCSharpProject();
            projectContent.Project  = project;
            projectContent.Language = LanguageProperties.None;
            ReferenceProjectItem refProjectItem = new ReferenceProjectItem(project);

            refProjectItem.Include = "NUnit.Framework";
            ProjectService.AddProjectItem(project, refProjectItem);
            solution.Folders.Add(project);

            pad.CallSolutionLoaded(solution);
        }
        public void SolutionLoadedAfterTreeDisposedDoesNotThrowNullReferenceException()
        {
            Solution solution = new Solution(new MockProjectChangeWatcher());

            Assert.DoesNotThrow(delegate { pad.CallSolutionLoaded(solution); });
        }
        public void SolutionLoadedAfterTreeDisposedDoesNotThrowNullReferenceException()
        {
            Solution solution = new Solution();

            Assert.DoesNotThrow(delegate { pad.CallSolutionLoaded(solution); });
        }