<PackageReference Include="NUnit" Version="3.13.3" />

TestWorker

public class TestWorker
A TestWorker pulls work items from a queue and executes them.
public sealed delegate TestWorkerEventHandler : MulticastDelegate

Event handler for TestWorker events

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 WorkItemQueue WorkQueue { get; }

The WorkItemQueue from which this worker pulls WorkItems

Event signaled immediately before executing a WorkItem

Event signaled immediately after executing a WorkItem

public TestWorker(WorkItemQueue queue, string name)

Construct a new TestWorker.

public void Cancel(bool force)

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

public void Start()

Create thread and start processing work items.