Interface ISelfExecutingXunitTestCase
Represents an implementation of IXunitTestCase that is self-executing. This allows the test case to opt into the middle of the test execution pipeline without implementing everything that comes before it.
public interface ISelfExecutingXunitTestCase : IXunitTestCase, ITestCase, ITestCaseMetadata
- Inherited Members
Methods
Run(ExplicitOption, IMessageBus, object?[], ExceptionAggregator, CancellationTokenSource)
Executes the test case, returning 0 or more result messages through the message sink.
ValueTask<RunSummary> Run(ExplicitOption explicitOption, IMessageBus messageBus, object?[] constructorArguments, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource)
Parameters
explicitOptionExplicitOptionA flag to indicate how explicit tests should be treated.
messageBusIMessageBusThe message bus to report results to.
constructorArgumentsobject[]The arguments to pass to the constructor.
aggregatorExceptionAggregatorThe error aggregator to use for catching exception.
cancellationTokenSourceCancellationTokenSourceThe cancellation token source that indicates whether cancellation has been requested.
Returns
- ValueTask<RunSummary>
Returns the summary of the test case run.