Table of Contents

Interface ITestCaseOrderer

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

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

testCases IReadOnlyCollection<TTestCase>

The test cases to be ordered.

Returns

IReadOnlyCollection<TTestCase>

The test cases in the order to be run.

Type Parameters

TTestCase