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

Handle calling into the test framework as needed to perform the test run, process the internal test dispatcher queue, and keep execution moving forward.
Mostrar archivo Open project: garyjohnson/wpnest Class Usage Examples

Public Methods

Method Description
Create ( Func runNextStep ) : RunDispatcher

Create a new run method manager object.

Create ( Func runNextStep, Dispatcher dispatcher ) : RunDispatcher

Create a new run method manager object.

Run ( ) : void

A completely synchronous implementation, unless overridden, that calls RunNextStep() until the harness is finished. The default implementation will not work with a presentation-rich test environment.

RunDispatcher ( Func runNextStep ) : System

Creates a new RunMethodManager, taking in a conditional delegate to run for each step to see if more work remains.

Protected Methods

Method Description
OnComplete ( ) : void

Calls the Complete event handler.

RunNextStep ( ) : bool

Calls a conditional delegate, and returns whether there is more work to be done.

Method Details

Create() public static method

Create a new run method manager object.
public static Create ( Func runNextStep ) : RunDispatcher
runNextStep Func /// Conditional indicating whether more work will remain after /// performing the work. ///
return RunDispatcher

Create() public static method

Create a new run method manager object.
public static Create ( Func runNextStep, Dispatcher dispatcher ) : RunDispatcher
runNextStep Func /// Conditional indicating whether more work will remain after /// performing the work. ///
dispatcher System.Windows.Threading.Dispatcher A Dispatcher instance.
return RunDispatcher

OnComplete() protected method

Calls the Complete event handler.
protected OnComplete ( ) : void
return void

Run() public method

A completely synchronous implementation, unless overridden, that calls RunNextStep() until the harness is finished. The default implementation will not work with a presentation-rich test environment.
public Run ( ) : void
return void

RunDispatcher() public method

Creates a new RunMethodManager, taking in a conditional delegate to run for each step to see if more work remains.
public RunDispatcher ( Func runNextStep ) : System
runNextStep Func /// The conditional delegate that performs work and indicates whether /// additional work remains. ///
return System

RunNextStep() protected method

Calls a conditional delegate, and returns whether there is more work to be done.
protected RunNextStep ( ) : bool
return bool