Table of Contents

Class XunitTestClassRunnerBaseContext<TTestClass, TTestCase>

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll
public class XunitTestClassRunnerBaseContext<TTestClass, TTestCase> : TestClassRunnerContext<TTestClass, TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestClass : class, IXunitTestClass where TTestCase : class, IXunitTestCase

Type Parameters

TTestClass
TTestCase
Inheritance
TestClassRunnerContext<TTestClass, TTestCase>
XunitTestClassRunnerBaseContext<TTestClass, TTestCase>
Implements
Derived
Inherited Members

Constructors

XunitTestClassRunnerBaseContext(TTestClass, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)

public XunitTestClassRunnerBaseContext(TTestClass testClass, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager collectionFixtureMappings)

Parameters

testClass TTestClass

The test class

testCases IReadOnlyCollection<TTestCase>

The test from the test class

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 orderer used to sort the test cases for executiong

aggregator ExceptionAggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

collectionFixtureMappings FixtureMappingManager

The fixtures attached to the test collection

Properties

ClassFixtureMappings

Gets the mapping manager for class-level fixtures.

public FixtureMappingManager ClassFixtureMappings { get; }

Property Value

FixtureMappingManager

TestCaseOrderer

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

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