Method ResolveGenericTypes
- Namespace
- Xunit.Sdk
- Assembly
- xunit.v3.common.dll
ResolveGenericTypes(MethodInfo, object?[])
Resolves all the generic types for a test method. The arguments are used to determine the best matching generic types for the method that can be satisfied by all the generic parameters and their argument values.
public static Type[] ResolveGenericTypes(this MethodInfo method, object?[] arguments)
Parameters
methodMethodInfoThe method
argumentsobject[]The argument values being passed to the method
Returns
- Type[]
The best matching generic types