Table of Contents

Class DefaultTestCollectionOrderer

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

Default implementation of ITestCollectionOrderer. Orders tests in an unpredictable and unstable order, so that repeated test runs of the identical test assembly run test collections in a random order.

public class DefaultTestCollectionOrderer : ITestCollectionOrderer
Inheritance
DefaultTestCollectionOrderer
Implements
Inherited Members

Properties

Instance

Get the singleton instance of DefaultTestCollectionOrderer.

public static DefaultTestCollectionOrderer Instance { get; }

Property Value

DefaultTestCollectionOrderer

Methods

OrderTestCollections<TTestCollection>(IReadOnlyCollection<TTestCollection>)

Orders test collections for execution.

public 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.