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.
Afficher le fichier Open project: garyjohnson/wpnest Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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

Create() public static méthode

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

OnComplete() protected méthode

Calls the Complete event handler.
protected OnComplete ( ) : void
Résultat void

Run() public méthode

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

RunDispatcher() public méthode

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

RunNextStep() protected méthode

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