Table of Contents

Interface ITestCollectionOrderer

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

A class implements this interface to participate in ordering tests for the test runner. Test collection orderers are applied using the and implementation of ITestCollectionOrdererAttribute (most commonly TestCollectionOrdererAttribute), which can be applied at the assembly level.

public interface ITestCollectionOrderer

Methods

OrderTestCollections<TTestCollection>(IReadOnlyCollection<TTestCollection>)

Orders test collections for execution.

IReadOnlyCollection<TTestCollection> OrderTestCollections<TTestCollection>(IReadOnlyCollection<TTestCollection> testCollections) where TTestCollection : ITestCollection

Parameters

testCollections IReadOnlyCollection<TTestCollection>

The test collections to be ordered.

Returns

IReadOnlyCollection<TTestCollection>

The test collections in the order to be run.

Type Parameters

TTestCollection

The type of the test collection to be ordered. Must derive from ITestCollection.