Class TestMethodRunnerContext<TTestMethod, TTestCase>
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
Base context class for TestMethodRunner<TContext, TTestMethod, TTestCase>.
public class TestMethodRunnerContext<TTestMethod, TTestCase> : ContextBase, IAsyncLifetime, IAsyncDisposable where TTestMethod : class, ITestMethod where TTestCase : class, ITestCase
Type Parameters
TTestMethodThe type of the test method used by the test framework. Must derive from ITestMethod.
TTestCaseThe 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.