private static IEnumerable <TestCase> ApplyFilter(string vsTestFilterString, string testCasesXml) { var filter = FilteringTestUtils.CreateTestFilter(string.IsNullOrEmpty(vsTestFilterString) ? null : FilteringTestUtils.CreateVSTestFilterExpression(vsTestFilterString)); return(filter.CheckFilter(FilteringTestUtils.ConvertTestCases(testCasesXml))); }
public void CanFilterConvertedTestsByCategoryWithCategoryAsFilter(string category, IReadOnlyCollection <string> expectedMatchingTestNames) { FilteringTestUtils.AssertExpectedResult( TestDoubleFilterExpression.AnyIsEqualTo("Category", category), FilteringTestUtils.ConvertTestCases(FakeTestData.HierarchyTestXml), expectedMatchingTestNames); }