示例#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)));
        }
示例#2
0
 public void CanFilterConvertedTestsByCategoryWithCategoryAsFilter(string category, IReadOnlyCollection <string> expectedMatchingTestNames)
 {
     FilteringTestUtils.AssertExpectedResult(
         TestDoubleFilterExpression.AnyIsEqualTo("Category", category),
         FilteringTestUtils.ConvertTestCases(FakeTestData.HierarchyTestXml),
         expectedMatchingTestNames);
 }