Interface ITestCaseOrderer
A class implements this interface to participate in ordering tests for the test runner. Test case orderers are applied using the TestCaseOrdererAttribute, which can be applied at the assembly, test collection, and test class level.
Namespace: Xunit.Sdk
Assembly: xunit.core.dll
Syntax
public interface ITestCaseOrderer
Methods
| Improve this Doc View SourceOrderTestCases<TTestCase>(IEnumerable<TTestCase>)
Orders test cases for execution.
Declaration
IEnumerable<TTestCase> OrderTestCases<TTestCase>(IEnumerable<TTestCase> testCases)
where TTestCase : ITestCase
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TTestCase> | testCases | The test cases to be ordered. |
Returns
Type | Description |
---|---|
IEnumerable<TTestCase> | The test cases in the order to be run. |
Type Parameters
Name | Description |
---|---|
TTestCase |