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. Arguments without matching values may be returned as Value, as the ITypeActivator is responsible for determining how to resolve unknown arguments.
protected virtual ValueTask<object?[]> CreateTestClassConstructorArguments(TContext ctxt)
Parameters
ctxtTContextThe context that describes the current test class
Returns
Remarks
This method runs during Initializing and any exceptions thrown will contribute to test class failure (and will prevent the test class from running)