ALE.Tests.EventLoop_Tests.EventLoop_Pend C# (CSharp) Method

EventLoop_Pend() private method

private EventLoop_Pend ( ) : void
return void
        public void EventLoop_Pend()
        {
            var wait = new AutoResetEvent(false);
            EventLoop.Start();
            EventLoop.Pend(() =>
                               {
                                   wait.Set();
                               });
            if (!wait.WaitOne(100))
            {
                Assert.Fail("Event did not fire correctly.");
            }
        }