Table of Contents

Class TestCaseRunnerContext<TTestCase, TTest>

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

Type Parameters

TTestCase

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

TTest

The type of the test that is generated from the test case. Must derive from ITest.

Inheritance
TestCaseRunnerContext<TTestCase, TTest>
Implements
Derived
Inherited Members

Constructors

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

protected TestCaseRunnerContext(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

Tests

Gets the tests for the given test case.

public abstract IReadOnlyCollection<TTest> Tests { get; }

Property Value

IReadOnlyCollection<TTest>