SimpleWorkItemDispatcher
SimpleWorkItemDispatcher handles execution of WorkItems by
directly executing them. It is provided so that a dispatcher
is always available in the context, thereby simplifying the
code needed to run child tests.
public SimpleWorkItemDispatcher()
Cancel (abort or stop) the ongoing run.
If no run is in process, the call has no effect.
Dispatch a single work item for execution. The first
work item dispatched is saved as the top-level
work item and a thread is created on which to
run it. Subsequent calls come from the top level
item or its descendants on the proper thread.