Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 void GetTestClasses()
 {
     testClasses = new TestClassCollection();
     foreach (IClass c in projectContent.Classes)
     {
         if (IsTestClass(c))
         {
             if (!testClasses.Contains(c.FullyQualifiedName))
             {
                 testClasses.Add(CreateTestClass(c));
             }
         }
         foreach (IClass innerClass in new InnerClassEnumerator(c))
         {
             if (IsTestClass(innerClass))
             {
                 if (!testClasses.Contains(innerClass.DotNetName))
                 {
                     testClasses.Add(CreateTestClass(innerClass));
                 }
             }
         }
     }
 }