Table of Contents

Class TestCaseRunnerBaseContext<TTestCase>

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

Type Parameters

TTestCase

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

Inheritance
TestCaseRunnerBaseContext<TTestCase>
Implements
Derived
Inherited Members

Constructors

TestCaseRunnerBaseContext(TTestCase, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)

public TestCaseRunnerBaseContext(TTestCase testCase, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)

Parameters

testCase TTestCase

The test case

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

TestCase

Gets the test case that is being executed.

public TTestCase TestCase { get; }

Property Value

TTestCase