Method GetConstructorArgument
- Namespace
- Xunit.v3
- Assembly
- xunit.v3.core.dll
GetConstructorArgument(TContext, ConstructorInfo, int, ParameterInfo)
Tries to supply a test class constructor argument.
protected virtual ValueTask<object?> GetConstructorArgument(TContext ctxt, ConstructorInfo constructor, int index, ParameterInfo parameter)
Parameters
ctxtTContextThe context that describes the current test class
constructorConstructorInfoThe constructor that will be used to create the test class.
indexintThe parameter index.
parameterParameterInfoThe parameter information.