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

EventPump<TEvent, TListener>

public abstract class EventPump<TEvent, TListener> : IDisposable where TEvent : IEvent<TListener>
EventPump base class pulls events of any type out of an EventQueue and sends them to any listener. It is used to send events back to the client without using the CallContext of the test runner thread.
public string Name { get; set; }

Gets or sets the name of this EventPump (used only internally and for testing).

public EventPumpState PumpState { get; }

Gets or sets the current state of the pump

protected EventPump(TListener eventListener, EventQueue<TEvent> events, string name = "Standard")

Constructor

public void Dispose()

Dispose stops the pump Disposes the used WaitHandle, too.

public void Start()

Start the pump

public void Stop()

Tell the pump to stop after emptying the queue.