<PackageReference Include="NUnit" Version="3.12.0" />

MethodWrapper

The MethodWrapper class wraps a MethodInfo so that it may be used in a platform-independent manner.
public bool ContainsGenericParameters { get; }

Gets a value indicating whether the method contains unassigned generic type parameters.

public bool IsAbstract { get; }

Gets a value indicating whether the method is abstract.

public bool IsGenericMethod { get; }

Gets a value indicating whether the method is a generic method.

public bool IsGenericMethodDefinition { get; }

Gets a value indicating whether the MethodInfo represents the definition of a generic method.

public bool IsPublic { get; }

Gets a value indicating whether the method is public.

public MethodInfo MethodInfo { get; }

Gets the MethodInfo for this method.

public string Name { get; }

Gets the name of the method.

public ITypeInfo ReturnType { get; }

Gets the return Type of the method.

public ITypeInfo TypeInfo { get; }

Gets the Type from which this method was reflected.

public MethodWrapper(Type type, MethodInfo method)

Construct a MethodWrapper for a Type and a MethodInfo.

public MethodWrapper(Type type, string methodName)

Construct a MethodInfo for a given Type and method name.

public T[] GetCustomAttributes<T>(bool inherit)

Returns an array of custom attributes of the specified type applied to this method

Returns the Type arguments of a generic method or the Type parameters of a generic method definition.

Gets the parameters of the method.

public object Invoke(object fixture, object[] args)

Invokes the method, converting any TargetInvocationException to an NUnitException.

public bool IsDefined<T>(bool inherit)

Gets a value indicating whether one or more attributes of the specified type are defined on the method.

public IMethodInfo MakeGenericMethod(Type[] typeArguments)

Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo.