Method RunXunitTestCase
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
RunXunitTestCase(IXunitTestCase, IMessageBus, CancellationTokenSource, ExceptionAggregator, ExplicitOption, object?[])
Runs a single test case (which implements IXunitTestCase) using the XunitTestCaseRunner after enumerating all tests.
public static ValueTask<RunSummary> RunXunitTestCase(IXunitTestCase testCase, IMessageBus messageBus, CancellationTokenSource cancellationTokenSource, ExceptionAggregator aggregator, ExplicitOption explicitOption, object?[] constructorArguments)
Parameters
testCaseThe test case to run
messageBusThe message bus to send the messages to
cancellationTokenSourceCancellationTokenSourceThe cancellation token source to cancel if requested
aggregatorThe exception aggregator to record exceptions to
explicitOptionA flag to indicate which types of tests to run (non-explicit, explicit, or both)
constructorArgumentsobject[]The arguments to pass to the test class constructor