Table of Contents

Method CreateTestClassConstructorArguments

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

CreateTestClassConstructorArguments(TContext)

Creates the arguments for the test class constructor. By default just returns an empty set of arguments. Override to find the arguments for the constructor.

protected override ValueTask<object?[]> CreateTestClassConstructorArguments(TContext ctxt)

Parameters

ctxt TContext

The context that describes the current test class

Returns

ValueTask<object[]>

The test class constructor arguments.

Remarks

This method runs during Initializing and any exceptions thrown will contribute to test class failure (and will prevent the test class from running)