<PackageReference Include="NUnit" Version="3.0.0-alpha-2" />

TestWorker

public class TestWorker
A TestWorker pulls work items from a queue and executes them.
public bool IsAlive { get; }

Indicates whether the worker thread is running

public string Name { get; }

The name of this worker - also used for the thread

public event EventHandler Busy

Event signaled immediately before executing a WorkItem

public event EventHandler Idle

Event signaled immediately after executing a WorkItem

public TestWorker(WorkItemQueue queue, string name, ApartmentState apartmentState)

Construct a new TestWorker.

public void Cancel()

Stop the thread, either immediately or after finishing the current WorkItem

public void Start()

Start processing work items.