Table of Contents

Class XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll
public class XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase> : TestCollectionRunnerContext<TTestCollection, TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestCollection : class, IXunitTestCollection where TTestCase : class, IXunitTestCase

Type Parameters

TTestCollection
TTestCase
Inheritance
TestCollectionRunnerContext<TTestCollection, TTestCase>
XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>
Implements
Derived
Inherited Members

Constructors

XunitTestCollectionRunnerBaseContext(TTestCollection, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)

public XunitTestCollectionRunnerBaseContext(TTestCollection testCollection, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager assemblyFixtureMappings)

Parameters

testCollection TTestCollection

The test collection

testCases IReadOnlyCollection<TTestCase>

The test cases from the test collection

explicitOption ExplicitOption

The user's choice on how to treat explicit tests

messageBus IMessageBus

The message bus to send execution messages to

testCaseOrderer ITestCaseOrderer

The order used to order tests cases in the collection

aggregator ExceptionAggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

assemblyFixtureMappings FixtureMappingManager

The fixtures associated with the test assembly

Properties

CollectionFixtureMappings

Gets the mapping manager for collection-level fixtures.

public FixtureMappingManager CollectionFixtureMappings { get; }

Property Value

FixtureMappingManager

TestCaseOrderer

Gets or sets the orderer used to order test cases within the test collection.

public ITestCaseOrderer TestCaseOrderer { get; set; }

Property Value

ITestCaseOrderer

Methods

InitializeAsync()

Called immediately after the class has been created, before it is used.

public override ValueTask InitializeAsync()

Returns

ValueTask