Table of Contents

Method RunTestCases

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

RunTestCases(IReadOnlyCollection<TTestCase>, IMessageSink, ITestFrameworkExecutionOptions, CancellationToken)

Runs selected test cases in the assembly.

public abstract ValueTask RunTestCases(IReadOnlyCollection<TTestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions, CancellationToken cancellationToken)

Parameters

testCases IReadOnlyCollection<TTestCase>

The test cases to run.

executionMessageSink

The message sink to report results back to.

executionOptions

The options to be used during test execution.

cancellationToken CancellationToken

The cancellation token which can be used to cancel the test execution process.

Returns

ValueTask