Beispiel #1
0
        static void Main(string[] args)
        {
            var data       = GetDataSource();
            var conditions = GetConditions();
            var mappings   = GetMappings();

            var filteringEngine = new FilteringEngine();

            var filtered = filteringEngine.Filter(data, conditions);

            PrintCollection(filtered, "Filtered:");

            var selectionEngine = new SelectionEngine();

            var selection = selectionEngine.Select <Person, SelectionType>(filtered, mappings);

            PrintCollection(selection, "Selected:");
        }
Beispiel #2
0
 /// <summary>
 /// Filter a collection of test cases. Goes through each TestRecord
 /// and verifies its TestInfo passes the filtering settings. If it
 /// does not, marks the TestRecord as not enabled for execution,
 /// and provides an explanation.
 /// </summary>
 /// <param name="filteringSettings">Filter to evaluate TestRecord against.</param>
 /// <param name="testBinariesDirectory"/>
 public void Filter(FilteringSettings filteringSettings, DirectoryInfo testBinariesDirectory)
 {
     Profiler.StartMethod();
     FilteringEngine.Filter(filteringSettings, this, testBinariesDirectory);
     Profiler.EndMethod();
 }