/// <summary>
 /// Gets the test classes for this namespace.
 /// </summary>
 void GetTestClasses()
 {
     testClasses = new TestClassCollection();
     foreach (TestClass c in TestProject.GetTestClasses(fullNamespace))
     {
         testClasses.Add(c);
     }
     testClasses.ResultChanged += TestClassesResultChanged;
 }
예제 #2
0
		/// <summary>
		/// Adds the child nodes after this node has been expanded.
		/// </summary>
		protected override void Initialize()
		{
			Nodes.Clear();
			
			// Add namespace nodes.
			foreach (string rootNamespace in TestProject.RootNamespaces) {
				TestNamespaceTreeNode node = new TestNamespaceTreeNode(TestProject, rootNamespace);
				node.AddTo(this);
			}
			
			// Add class nodes.
			foreach (TestClass c in TestProject.GetTestClasses(String.Empty)) {
				AddClassNode(c);
			}
			
			// Sort the nodes.
			SortChildNodes();
		}