Table of Contents

Method RunTestCases

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

RunTestCases(IReadOnlyCollection<ITestCase>, IMessageSink, ITestFrameworkExecutionOptions, CancellationToken?)

Runs selected test cases in the assembly.

ValueTask RunTestCases(IReadOnlyCollection<ITestCase> testCases, IMessageSink executionMessageSink, ITestFrameworkExecutionOptions executionOptions, CancellationToken? cancellationToken = null)

Parameters

testCases IReadOnlyCollection<ITestCase>

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 optional cancellation token which can be used to cancel the test execution process.

Returns

ValueTask