Table of Contents

Constructor TestRunnerContext

Namespace
Xunit.v3
Assembly
xunit.v3.core.dll

TestRunnerContext(TTest, IMessageBus, string?, ExplicitOption, ExceptionAggregator, CancellationTokenSource, MethodInfo, object?[])

Base context class for TestRunner<TContext, TTest>. This includes an assumption that a test means invoking a method on a class.

public TestRunnerContext(TTest test, IMessageBus messageBus, string? skipReason, ExplicitOption explicitOption, ExceptionAggregator aggregator, CancellationTokenSource cancellationTokenSource, MethodInfo testMethod, object?[] testMethodArguments)

Parameters

test TTest

The test

messageBus

The message bus to send execution messages to

skipReason string

The skip reason for the test, if it's being skipped

explicitOption

The user's choice on how to treat explicit tests

aggregator

The exception aggregator

cancellationTokenSource CancellationTokenSource

The cancellation token source

testMethod MethodInfo

The test method

testMethodArguments object[]

The method arguments for the test method