コード例 #1
0
 public IEnumerable <TTestCase> OrderTestCases <TTestCase>(IEnumerable <TTestCase> testCases) where TTestCase : ITestCase
 {
     //var result = testCases.ToList();  // Run them in discovery order
     //var message = new DiagnosticMessage("Ordered {0} test cases", result.Count);
     //diagnosticMessageSink.OnMessage(message);
     //return result;
     return(DependencySorter.Sort(testCases.Select(x => new TestCaseWrapper(x))).Select(x => x.TestCase).Cast <TTestCase>());
 }
コード例 #2
0
 public IEnumerable <ITestCollection> OrderTestCollections(IEnumerable <ITestCollection> testCollections)
 {
     return(DependencySorter.Sort(testCollections.Select(x => new TestCollectionWrapper(x))).Select(x => x.TestCollection));
 }
コード例 #3
0
 public IEnumerable <TTestCase> OrderTestCases <TTestCase>(IEnumerable <TTestCase> testCases) where TTestCase : ITestCase
 {
     return(DependencySorter.Sort(testCases.Select(x => new TestCaseWrapper(x))).Select(x => x.TestCase).Cast <TTestCase>());
 }