Table of Contents

Method ResolveMethodArguments

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

ResolveMethodArguments(MethodBase, object?[])

Resolves argument values for the test method, ensuring they are the correct type, including support for optional method arguments.

public static object?[] ResolveMethodArguments(this MethodBase testMethod, object?[] arguments)

Parameters

testMethod MethodBase

The test method to resolve.

arguments object[]

The user-supplied method arguments.

Returns

object[]

The argument values