public void ResetTestResults()
        {
            foreach (IProject project in projects)
            {
                TestProject testProject = treeView.GetTestProject(project);
                MockClass   mockClass   = new MockClass("MyTestFixture");
                TestClass   testClass   = new TestClass(mockClass);
                testClass.Result = TestResultType.Failure;
                testProject.TestClasses.Add(testClass);
                Assert.AreEqual(testProject.TestClasses.Result, TestResultType.Failure);
            }

            treeView.ResetTestResults();
            foreach (IProject project in projects)
            {
                TestProject testProject = treeView.GetTestProject(project);
                Assert.AreEqual(testProject.TestClasses.Result, TestResultType.None);
            }
        }
        public void SetUp()
        {
            treeView = new DummyParserServiceTestTreeView();

            // Create a solution with two test projects.
            solution = new Solution();

            // Create the first test project.
            firstProject      = new MockCSharpProject(solution);
            firstProject.Name = "FirstTestProject";
            ReferenceProjectItem nunitFrameworkReferenceItem = new ReferenceProjectItem(firstProject);

            nunitFrameworkReferenceItem.Include = "NUnit.Framework";
            ProjectService.AddProjectItem(firstProject, nunitFrameworkReferenceItem);

            // Create the second test project.
            secondProject                       = new MockCSharpProject(solution);
            secondProject.Name                  = "SecondTestProject";
            nunitFrameworkReferenceItem         = new ReferenceProjectItem(secondProject);
            nunitFrameworkReferenceItem.Include = "NUnit.Framework";
            ProjectService.AddProjectItem(secondProject, nunitFrameworkReferenceItem);

            // Add the projects to the solution.
            solution.Folders.Add(firstProject);
            solution.Folders.Add(secondProject);

            // Create a dummy project content so the projects will be added
            // to the tree.
            treeView.ProjectContentForProject = new MockProjectContent();

            // Add the solution to the tree.
            treeView.AddSolution(solution);

            allTestsTreeNode  = treeView.Nodes[0] as AllTestsTreeNode;
            firstTestProject  = treeView.GetTestProject(firstProject);
            secondTestProject = treeView.GetTestProject(secondProject);
        }