Class XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>
Context class for XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>.
public class XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase> : TestCollectionRunnerContext<TTestCollection, TTestCase>, IAsyncLifetime, IAsyncDisposable where TTestCollection : class, IXunitTestCollection where TTestCase : class, IXunitTestCase
Type Parameters
TTestCollectionTTestCase
- Inheritance
-
TestCollectionRunnerContext<TTestCollection, TTestCase>XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>
- Implements
- Derived
- Inherited Members
Constructors
XunitTestCollectionRunnerBaseContext(TTestCollection, IReadOnlyCollection<TTestCase>, ExplicitOption, IMessageBus, ITestCaseOrderer, ExceptionAggregator, CancellationTokenSource, FixtureMappingManager)
Context class for XunitTestCollectionRunnerBaseContext<TTestCollection, TTestCase>.
public XunitTestCollectionRunnerBaseContext(TTestCollection testCollection, IReadOnlyCollection<TTestCase> testCases, ExplicitOption explicitOption, IMessageBus messageBus, ITestCaseOrderer testCaseOrderer, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, FixtureMappingManager assemblyFixtureMappings)
Parameters
testCollectionTTestCollectionThe test collection
testCasesIReadOnlyCollection<TTestCase>The test cases from the test collection
explicitOptionExplicitOptionThe user's choice on how to treat explicit tests
messageBusIMessageBusThe message bus to send execution messages to
testCaseOrdererITestCaseOrdererThe order used to order tests cases in the collection
aggregatorExceptionAggregatorThe exception aggregator
cancellationTokenSourceCancellationTokenSourceThe cancellation token source
assemblyFixtureMappingsFixtureMappingManagerThe fixtures associated with the test assembly
Properties
CollectionFixtureMappings
Gets the mapping manager for collection-level fixtures.
public FixtureMappingManager CollectionFixtureMappings { get; }
Property Value
TestCaseOrderer
Gets or sets the orderer used to order test cases within the test collection.
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()