Example #1
0
        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),
         TestCaseUtils.ConvertTestCases(FakeTestData.HierarchyTestXml),
         expectedMatchingTestNames);
 }