Class XunitTestClassRunnerBaseContext<TTestClass, TTestCase>
Context class for XunitTestClassRunnerBase<TContext, TTestClass, TTestMethod, TTestCase>.
public class XunitTestClassRunnerBaseContext<TTestClass, TTestCase> : TestClassRunnerContext<TTestClass, TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestClass : class, IXunitTestClass where TTestCase : class, IXunitTestCase
Type Parameters
TTestClassTTestCase
- Inheritance
-
TestClassRunnerContext<TTestClass, TTestCase>XunitTestClassRunnerBaseContext<TTestClass, TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
XunitTestClassRunnerBaseContext(TTestClass, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)
Context class for XunitTestClassRunnerBase<TContext, TTestClass, TTestMethod, TTestCase>.
public XunitTestClassRunnerBaseContext(TTestClass testClass, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager collectionFixtureMappings)
Parameters
testClassTTestClassThe test class
testCasesIReadOnlyCollection<TTestCase>The test from the test class
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
messageBusIMessageBusThe message bus to send execution messages to
testCaseOrdererITestCaseOrdererThe orderer used to sort the test cases for executiong
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
collectionFixtureMappingsFixtureMappingManagerThe fixtures attached to the test collection
Properties
ClassFixtureMappings
Gets the mapping manager for class-level fixtures.
public FixtureMappingManager ClassFixtureMappings { get; }
Property Value
TestCaseOrderer
Gets or sets the orderer used to order the test cases.
public ITestCaseOrderer TestCaseOrderer { get; set; }
Property Value
Methods
InitializeAsync()
Called immediately after the class has been created, before it is used.
public override ValueTask InitializeAsync()