C# Class Open.Testing.Models.MethodInfo

Represents a single test method.
Inheritance: Open.Core.ModelBase
显示文件 Open project: philcockfield/Open.TestHarness.SL Class Usage Examples

Public Methods

Method Description
FormatName ( string name ) : string

Formats a name into a display name (replace underscores with spaces etc.).

Invoke ( ) : Exception

Invokes the method.

IsTestMethod ( DictionaryEntry item ) : bool

Determines whether the specified DictionaryEntry represents a valid test-method.

LogError ( Exception error ) : void

Formats an error message.

MethodInfo ( ClassInfo classInfo, string name ) : System

Constructor.

Method Details

FormatName() public static method

Formats a name into a display name (replace underscores with spaces etc.).
public static FormatName ( string name ) : string
name string The name to format.
return string

Invoke() public method

Invokes the method.
public Invoke ( ) : Exception
return System.Exception

IsTestMethod() public static method

Determines whether the specified DictionaryEntry represents a valid test-method.
public static IsTestMethod ( DictionaryEntry item ) : bool
item System.Collections.DictionaryEntry The Dictionaty item to examine.
return bool

LogError() public method

Formats an error message.
public LogError ( Exception error ) : void
error System.Exception The invoke error.
return void

MethodInfo() public method

Constructor.
public MethodInfo ( ClassInfo classInfo, string name ) : System
classInfo ClassInfo The test-class that this method is a member of.
name string The name of the method.
return System