Search Results for

    Show / Hide Table of Contents

    Class TestContext.MethodInfoAdapter

    Useful when exposing IMethodInfo data without needing to expose the entire IMethodInfo interface and the possibility to invoke it.

    Inheritance
    object
    TestContext.MethodInfoAdapter
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: NUnit.Framework
    Assembly: nunit.framework.dll
    Syntax
    public class TestContext.MethodInfoAdapter

    Constructors

    View Source

    MethodInfoAdapter(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 Source

    DeclaringType

    Gets the declaring type of the method.

    Declaration
    public Type? DeclaringType { get; }
    Property Value
    Type Description
    Type
    View Source

    Name

    Gets the name of the method.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    Methods

    View Source

    GetParameters()

    Gets the parameters of the method.

    Declaration
    public IEnumerable<ParameterInfo> GetParameters()
    Returns
    Type Description
    IEnumerable<ParameterInfo>
    • View Source
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0