C# Класс 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.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
OnComplete ( ) : void

Calls the Complete event handler.

RunNextStep ( ) : bool

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

Описание методов

Create() публичный статический Метод

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. ///
Результат RunDispatcher

Create() публичный статический Метод

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.
Результат RunDispatcher

OnComplete() защищенный Метод

Calls the Complete event handler.
protected OnComplete ( ) : void
Результат void

Run() публичный Метод

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
Результат void

RunDispatcher() публичный Метод

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. ///
Результат System

RunNextStep() защищенный Метод

Calls a conditional delegate, and returns whether there is more work to be done.
protected RunNextStep ( ) : bool
Результат bool