Interface ITestCaseOrderer
A class implements this interface to participate in ordering tests for the test runner. Test case orderers are applied using an implementation of ITestCaseOrdererAttribute (most commonly TestCaseOrdererAttribute), which can be applied at the assembly, test collection, and test class level.
public interface ITestCaseOrderer
Methods
OrderTestCases<TTestCase>(IReadOnlyCollection<TTestCase>)
Orders test cases for execution.
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