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>()); }
public IEnumerable <ITestCollection> OrderTestCollections(IEnumerable <ITestCollection> testCollections) { return(DependencySorter.Sort(testCollections.Select(x => new TestCollectionWrapper(x))).Select(x => x.TestCollection)); }
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>()); }