Class TestContext.MethodInfoAdapter
Useful when exposing IMethodInfo data without needing to expose the entire IMethodInfo interface and the possibility to invoke it.
Inherited Members
Namespace: NUnit.Framework
Assembly: nunit.framework.dll
Syntax
public class TestContext.MethodInfoAdapter
Constructors
View SourceMethodInfoAdapter(IMethodInfo)
Useful when exposing IMethodInfo data without needing to expose the entire IMethodInfo interface and the possibility to invoke it.
Declaration
public MethodInfoAdapter(IMethodInfo methodInfo)
Parameters
| Type | Name | Description |
|---|---|---|
| IMethodInfo | methodInfo | The IMethodInfo to be wrapped. |
Properties
View SourceDeclaringType
Gets the declaring type of the method.
Declaration
public Type? DeclaringType { get; }
Property Value
| Type | Description |
|---|---|
| Type |
Name
Gets the name of the method.
Declaration
public string Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceGetParameters()
Gets the parameters of the method.
Declaration
public IEnumerable<ParameterInfo> GetParameters()
Returns
| Type | Description |
|---|---|
| IEnumerable<ParameterInfo> |