Class XunitTestMethodRunnerBaseContext<TTestMethod, TTestCase>
Context class for XunitTestMethodRunnerBase<TContext, TTestMethod, TTestCase>.
public class XunitTestMethodRunnerBaseContext<TTestMethod, TTestCase> : TestMethodRunnerContext<TTestMethod, TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestMethod : class, IXunitTestMethod where TTestCase : class, IXunitTestCase
Type Parameters
TTestMethodTTestCase
- Inheritance
-
TestMethodRunnerContext<TTestMethod, TTestCase>XunitTestMethodRunnerBaseContext<TTestMethod, TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
XunitTestMethodRunnerBaseContext(TTestMethod, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ExceptionAggregator, CancellationTokenSource, object?[])
Context class for XunitTestMethodRunnerBase<TContext, TTestMethod, TTestCase>.
public XunitTestMethodRunnerBaseContext(TTestMethod testMethod, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, object?[] constructorArguments)
Parameters
testMethodTTestMethodThe test method
testCasesIReadOnlyCollection<TTestCase>The test cases from the test method
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
messageBusIMessageBusThe message bus to send execution messages to
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
constructorArgumentsobject[]The constructor arguments for the test class
Properties
ConstructorArguments
Gets the arguments to send to the test class constructor.
public object?[] ConstructorArguments { get; }
Property Value
- object[]