TestManagerHelpers.GetMethodInfo Method
Returns a specific method for a type. This method supports the generated test cases and is not intended to be used directly from your code.
Namespace: Microsoft.SpecExplorer.Runtime.Testing
Assembly: Microsoft.SpecExplorer.Runtime (in Microsoft.SpecExplorer.Runtime.dll)
Usage
'Usage
Syntax
'Declaration
public static MethodInfo GetMethodInfo (
Type type,
string name,
params Type[] parameterTypes
)
Parameters
- type
The type for which to return the method.
- name
The name of the method to get.
- parameterTypes
The Type objects representing the number, order, and type of the parameters of the method to get.
Return Value
A MethodInfo object representing the constructor that matches the specified requirements.
Remarks
This method throws an exception if it cannot find a corresponding method.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Microsoft Windows 7, Microsoft Windows Vista, Microsoft Windows XP SP2 or later, Microsoft Windows Server 2008, Microsoft Windows Server 2003
See Also
Reference
TestManagerHelpers Class
TestManagerHelpers Members
Microsoft.SpecExplorer.Runtime.Testing Namespace