Table of Contents

Class DefaultTestCaseOrderer

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

Default implementation of ITestCaseOrderer. Orders tests in an unpredictable but stable order, so that repeated test runs of the identical test assembly run tests in the same order.

public class DefaultTestCaseOrderer : ITestCaseOrderer
Inheritance
DefaultTestCaseOrderer
Implements
Inherited Members

Properties

Instance

Gets the singleton instance of DefaultTestCaseOrderer.

public static DefaultTestCaseOrderer Instance { get; }

Property Value

DefaultTestCaseOrderer

Methods

OrderTestCases<TTestCase>(IReadOnlyCollection<TTestCase>)

Orders test cases for execution.

public 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