Class DefaultTestCollectionOrderer
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
Methods
OrderTestCollections<TTestCollection>(IReadOnlyCollection<TTestCollection>)
Orders test collections for execution.
public IReadOnlyCollection<TTestCollection> OrderTestCollections<TTestCollection>(IReadOnlyCollection<TTestCollection> testCollections) where TTestCollection : ITestCollection
Parameters
testCollectionsIReadOnlyCollection<TTestCollection>The test collections to be ordered.
Returns
- IReadOnlyCollection<TTestCollection>
The test collections in the order to be run.
Type Parameters
TTestCollectionThe type of the test collection to be ordered. Must derive from ITestCollection.