Table of Contents

Method OrderTestCases

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

OrderTestCases(TContext)

Orders the test cases in the class. By default does not re-order the test cases. Override this to provide custom test case ordering.

protected override IReadOnlyCollection<TTestCase> OrderTestCases(TContext ctxt)

Parameters

ctxt TContext

The context that describes the current test class

Returns

IReadOnlyCollection<TTestCase>

Remarks

This method runs during Running and any exceptions thrown will contribute to test class failure