C# Класс Open.Testing.Models.MethodInfo

Represents a single test method.
Наследование: Open.Core.ModelBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

FormatName() публичный статический Метод

Formats a name into a display name (replace underscores with spaces etc.).
public static FormatName ( string name ) : string
name string The name to format.
Результат string

Invoke() публичный Метод

Invokes the method.
public Invoke ( ) : Exception
Результат System.Exception

IsTestMethod() публичный статический Метод

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.
Результат bool

LogError() публичный Метод

Formats an error message.
public LogError ( Exception error ) : void
error System.Exception The invoke error.
Результат void

MethodInfo() публичный Метод

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.
Результат System