Apache.NMS.Test.AsyncConsumeTest.WaitForMessageToArrive C# (CSharp) Method

WaitForMessageToArrive() protected method

protected WaitForMessageToArrive ( ) : void
return void
        protected void WaitForMessageToArrive()
        {
            semaphore.WaitOne((int) receiveTimeout.TotalMilliseconds, true);
            Assert.IsTrue(received, "Should have received a message by now!");
        }