Class DefaultTestCaseOrderer
Default implementation of ITestCaseOrderer. Orders tests in an unpredictable but stable order, so that repeated test runs of the identical test assembly run tests in the same order.
public class DefaultTestCaseOrderer : ITestCaseOrderer
- Inheritance
-
DefaultTestCaseOrderer
- Implements
- Inherited Members
Properties
Instance
Gets the singleton instance of DefaultTestCaseOrderer.
public static DefaultTestCaseOrderer Instance { get; }
Property Value
Methods
OrderTestCases<TTestCase>(IReadOnlyCollection<TTestCase>)
Orders test cases for execution.
public IReadOnlyCollection<TTestCase> OrderTestCases<TTestCase>(IReadOnlyCollection<TTestCase> testCases) where TTestCase : notnull, ITestCase
Parameters
testCasesIReadOnlyCollection<TTestCase>The test cases to be ordered.
Returns
- IReadOnlyCollection<TTestCase>
The test cases in the order to be run.
Type Parameters
TTestCase