Table of Contents

Class TestMethodRunnerContext<TTestMethod, TTestCase>

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

Type Parameters

TTestMethod

The type of the test method used by the test framework. Must derive from ITestMethod.

TTestCase

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

Inheritance
TestMethodRunnerContext<TTestMethod, TTestCase>
Implements
Derived
Inherited Members

Constructors

TestMethodRunnerContext(TTestMethod, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource)

Base context class for TestMethodRunner<TContext, TTestMethod, TTestCase>.

Properties

TestCases

Gets the test cases that are derived from this test method.

TestMethod

Gets the test method that is being executed.