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); }
// 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; }
// 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; }
// 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; }