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.
파일 보기 프로젝트 열기: garyjohnson/wpnest 1 사용 예제들

공개 메소드들

메소드 설명
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