public TestFilter ConvertTfsFilterToNUnitFilter(ITfsTestFilter tfsFilter, IList <TestCase> loadedTestCases)
        {
            var filteredTestCases = tfsFilter.CheckFilter(loadedTestCases);
            var testCases         = filteredTestCases as TestCase[] ?? filteredTestCases.ToArray();

            // TestLog.Info(string.Format("TFS Filter detected: LoadedTestCases {0}, Filtered Test Cases {1}", loadedTestCases.Count, testCases.Count()));
            return(testCases.Any() ? FilterByList(testCases) : NoTestsFound);
        }
예제 #2
0
 // This constructor is used when the executor is called with a list of assemblies
 public AssemblyRunner(TestLogger logger, string assemblyName, ITfsTestFilter tfsFilter, INUnitTestAdapter nunitTestAdapter)
     : this(logger, assemblyName, nunitTestAdapter)
 {
     this.tfsFilter = tfsFilter;
 }
예제 #3
0
 // This constructor is used when the executor is called with a list of assemblies
 public AssemblyRunner(TestLogger logger, string assemblyName, ITfsTestFilter tfsFilter, INUnitTestAdapter nunitTestAdapter)
     : this(logger, assemblyName, nunitTestAdapter)
 {
     this.tfsFilter = tfsFilter;
 }
예제 #4
0
 // This constructor is used when the executor is called with a list of assemblies
 public AssemblyRunner(TestLogger logger, string assemblyName, ITfsTestFilter tfsFilter)
     : this(logger, assemblyName)
 {
     this.tfsFilter = tfsFilter;
 }
예제 #5
0
 // This constructor is used when the executor is called with a list of assemblies
 public AssemblyRunner(TestLogger logger, string assemblyName, ITfsTestFilter tfsFilter, INUnitTestAdapter nunitTestAdapter, bool collectSourceInformation)
     : this(logger, assemblyName, nunitTestAdapter, collectSourceInformation)
 {
     this.tfsFilter = tfsFilter;
 }
예제 #6
0
 // This constructor is used when the executor is called with a list of assemblies
 public AssemblyRunner(TestLogger logger, string assemblyName, ITfsTestFilter tfsFilter)
     : this(logger, assemblyName)
 {
     this.tfsFilter = tfsFilter;
 }