protected void WaitForMessagesToArrive() { semaphore.WaitOne(30000, true); Assert.AreEqual(0, msgCount); }