SetupTestMethodOrderer
Namespace: E2E.XUnit.V3
public sealed class SetupTestMethodOrderer : ITestMethodOrdererPuts the setup tests (E2ESetupAttribute) of a class before its other tests, which keep xUnit’s default order. .NET-only:
upstream’s runner orders a setup test before its dependents itself, and xUnit orders the test methods. E2ETest applies it;
a class with its own [TestMethodOrderer] replaces it.
Inheritance: object
Implements: ITestMethodOrderer
Methods
Section titled “Methods”OrderTestMethods<TTestMethod>(IReadOnlyCollection<TTestMethod?>)
Section titled “OrderTestMethods<TTestMethod>(IReadOnlyCollection<TTestMethod?>)”public IReadOnlyCollection<TTestMethod?> OrderTestMethods<TTestMethod>(IReadOnlyCollection<TTestMethod?> testMethods) where TTestMethod : ITestMethodOrders test methods for execution.
Type parameters
| Name | Description |
|---|---|
TTestMethod |
Parameters
| Name | Type | Description |
|---|---|---|
testMethods |
IReadOnlyCollection<TTestMethod> | The test methods to be ordered. |
Returns: IReadOnlyCollection<TTestMethod> — The test methods in the order to be run.