C# Класс Microsoft.Silverlight.Testing.UnitTesting.Metadata.VisualStudio.TestMethod

A provider wrapper for a test method.
Наследование: ITestMethod
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
DecorateInstance ( object instance ) : void

Decorates a test class instance with the unit test framework's specific test context capability, if supported.

GetDynamicAttributes ( ) : IEnumerable

Get any attribute on the test method that are provided dynamically.

Invoke ( object instance ) : void

Invoke the test method.

TestMethod ( MethodInfo methodInfo ) : System

Creates a new test method wrapper object.

ToString ( ) : string

Exposes the name of the test method as a string.

Приватные методы

Метод Описание
OnWriteLine ( string s ) : void

Call the WriteLine method.

TestMethod ( ) : System

Private constructor, the constructor requires the method reflection object.

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

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

Decorates a test class instance with the unit test framework's specific test context capability, if supported.
public DecorateInstance ( object instance ) : void
instance object Instance to decorate.
Результат void

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

Get any attribute on the test method that are provided dynamically.
public GetDynamicAttributes ( ) : IEnumerable
Результат IEnumerable

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

Invoke the test method.
public Invoke ( object instance ) : void
instance object Instance of the test class.
Результат void

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

Creates a new test method wrapper object.
public TestMethod ( MethodInfo methodInfo ) : System
methodInfo System.Reflection.MethodInfo The reflected method.
Результат System

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

Exposes the name of the test method as a string.
public ToString ( ) : string
Результат string