Table of Contents

Class TestCollectionRunnerContext<TTestCollection, TTestCase>

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll
public class TestCollectionRunnerContext<TTestCollection, TTestCase> : ContextBase, IAsyncLifetime, IAsyncDisposable where TTestCollection : class, ITestCollection where TTestCase : class, ITestCase

Type Parameters

TTestCollection

The type of the test collection used by the test framework. Must derive from ITestCollection.

TTestCase

The type of the test case used by the test framework. Must derive from ITestCase.

Inheritance
TestCollectionRunnerContext<TTestCollection, TTestCase>
Implements
Derived
Inherited Members

Constructors

TestCollectionRunnerContext(TTestCollection, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)

public TestCollectionRunnerContext(TTestCollection testCollection, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)

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

aggregator ExceptionAggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

Properties

TestCases

Gets the test cases that belong to the test collection.

public IReadOnlyCollection<TTestCase> TestCases { get; protected set; }

Property Value

IReadOnlyCollection<TTestCase>

TestCollection

Gets the test collection that is being executed.

public TTestCollection TestCollection { get; }

Property Value

TTestCollection