Пример #1
0
 public static bool IncludeTest(TestAttributeBase test)
 {
     if (s_selectedTests == null || s_selectedTests.Count == 0)
     {
         return(true); // user has no selection - run all
     }
     else
     {
         return(s_selectedTests.Contains(test.Title));
     }
 }
Пример #2
0
 public TestBase(TestAttributeBase attr,
                 MethodInfo testMethodInfo,
                 Type type,
                 List<MethodInfo> setupMethods,
                 List<MethodInfo> cleanupMethods)
 {
     _attr = attr;
     _testMethod = testMethodInfo;
     _type = type;
     _setupMethods = setupMethods;
     _cleanupMethods = cleanupMethods;
 }
Пример #3
0
 public TestBase(TestAttributeBase attr,
                 MethodInfo testMethodInfo,
                 Type type,
                 List <MethodInfo> setupMethods,
                 List <MethodInfo> cleanupMethods)
 {
     _attr           = attr;
     _testMethod     = testMethodInfo;
     _type           = type;
     _setupMethods   = setupMethods;
     _cleanupMethods = cleanupMethods;
 }
Пример #4
0
 public static bool IncludeTest(TestAttributeBase test)
 {
     if (s_selectedTests == null || s_selectedTests.Count == 0)
         return true; // user has no selection - run all
     else
         return s_selectedTests.Contains(test.Title);
 }