private static void AddFilters(ITestRunner runner) { if (!string.IsNullOrEmpty(name)) { runner.AddFilter(new NameAccumulationFilter { Pattern = name }); } if (!string.IsNullOrEmpty(category)) { runner.AddFilter(new CategoryAccumulationFilter { Pattern = category }); } if (!string.IsNullOrEmpty(suiteName)) { runner.AddFilter(new SuiteNameAccumulationFilter { Pattern = suiteName }); } if (!string.IsNullOrEmpty(suiteCategory)) { runner.AddFilter(new SuiteCategoryAccumulationFilter { Pattern = suiteCategory }); } if (!string.IsNullOrEmpty(namespaceName)) { runner.AddFilter(new NamespaceAccumulationFilter { Namespace = namespaceName }); } }