C# Class Microsoft.Silverlight.Testing.UnitTesting.Metadata.VisualStudio.TestMethod

A provider wrapper for a test method.
Inheritance: ITestMethod
Afficher le fichier Open project: garyjohnson/wpnest Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
OnWriteLine ( string s ) : void

Call the WriteLine method.

TestMethod ( ) : System

Private constructor, the constructor requires the method reflection object.

Method Details

DecorateInstance() public méthode

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.
Résultat void

GetDynamicAttributes() public méthode

Get any attribute on the test method that are provided dynamically.
public GetDynamicAttributes ( ) : IEnumerable
Résultat IEnumerable

Invoke() public méthode

Invoke the test method.
public Invoke ( object instance ) : void
instance object Instance of the test class.
Résultat void

TestMethod() public méthode

Creates a new test method wrapper object.
public TestMethod ( MethodInfo methodInfo ) : System
methodInfo System.Reflection.MethodInfo The reflected method.
Résultat System

ToString() public méthode

Exposes the name of the test method as a string.
public ToString ( ) : string
Résultat string