public void EventLoop_Start()
{
var wait = new AutoResetEvent(false);
EventLoop.Start(() => wait.Set());
if (wait.WaitOne(100))
{
Assert.AreEqual(1, EventLoop.WorkerCount);
Assert.IsTrue(EventLoop.IsRunning);
} else
{
Assert.Fail("Did not fire initial event.");
}
}