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

Test work item type that does not complete until the sleep time has elapsed. This is NOT a blocking Sleep.
Inheritance: WorkItem
Mostra file Open project: garyjohnson/wpnest

Public Methods

Method Description
Invoke ( ) : bool

On the first time, will calculate the final DateTime. Otherwise, null operation (returns) until that time.

SleepWorkItem ( System.TimeSpan delay ) : System

Create a new Sleep work item, including the number of milliseconds to wait until continuing.

Method Details

Invoke() public method

On the first time, will calculate the final DateTime. Otherwise, null operation (returns) until that time.
public Invoke ( ) : bool
return bool

SleepWorkItem() public method

Create a new Sleep work item, including the number of milliseconds to wait until continuing.
public SleepWorkItem ( System.TimeSpan delay ) : System
delay System.TimeSpan Amount of time to wait/delay.
return System