C# Class Microsoft.Silverlight.Testing.Harness.TestMethodManager

Manager for planning, processing, and reporting the result of a single test method for a unit test provider.
Mostra file Open project: garyjohnson/wpnest

Private Properties

Property Type Description
CompleteMethod void
CreateNewResult void
EnqueueMethodDispatcher void
LogEndMessage void
LogStartMessage void
SetResultTimes void
UnhandledMethodException void

Public Methods

Method Description
TestMethodManager ( UnitTestHarness testHarness, ITestClass testClass, ITestMethod testMethod, object instance, IUnitTestProvider provider ) : System

Constructor for a test method manager, which handles executing a single test method for a unit test provider.

Protected Methods

Method Description
FirstInvoke ( ) : void

First invoke, plan for the method's execution.

OnWriteLine ( Microsoft.Silverlight.Testing.UnitTesting.Metadata.StringEventArgs e ) : void

Handles the write line event for the test method.

Private Methods

Method Description
CompleteMethod ( object sender, EventArgs e ) : void

Process the result.

CreateNewResult ( TestOutcome outcome ) : void

Creates the ScenarioResult instance for this test method.

EnqueueMethodDispatcher ( MethodInfo method ) : void

Create a new method container to enclose a reflected method for execution.

LogEndMessage ( ) : void

Log an end message.

LogStartMessage ( ) : void

Log a start message.

SetResultTimes ( ) : void

Sets the start and finish times on the ScenarioResult object.

UnhandledMethodException ( object sender, UnhandledExceptionEventArgs e ) : void

Process an unhandled exception for the method.

Method Details

FirstInvoke() protected method

First invoke, plan for the method's execution.
protected FirstInvoke ( ) : void
return void

OnWriteLine() protected method

Handles the write line event for the test method.
protected OnWriteLine ( Microsoft.Silverlight.Testing.UnitTesting.Metadata.StringEventArgs e ) : void
e Microsoft.Silverlight.Testing.UnitTesting.Metadata.StringEventArgs The string event arguments.
return void

TestMethodManager() public method

Constructor for a test method manager, which handles executing a single test method for a unit test provider.
public TestMethodManager ( UnitTestHarness testHarness, ITestClass testClass, ITestMethod testMethod, object instance, IUnitTestProvider provider ) : System
testHarness UnitTestHarness The unit test harness object.
testClass ITestClass The test class metadata object.
testMethod ITestMethod The test method metadata object.
instance object The test class instance.
provider IUnitTestProvider The unit test provider.
return System