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

A provider wrapper for a test method.
Inheritance: ITestMethod
Show file Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method 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

Method Description
OnWriteLine ( string s ) : void

Call the WriteLine method.

TestMethod ( ) : System

Private constructor, the constructor requires the method reflection object.

Method Details

DecorateInstance() public method

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.
return void

GetDynamicAttributes() public method

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

Invoke() public method

Invoke the test method.
public Invoke ( object instance ) : void
instance object Instance of the test class.
return void

TestMethod() public method

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

ToString() public method

Exposes the name of the test method as a string.
public ToString ( ) : string
return string