ALE.Tests.EventLoop_Tests.EventLoop_Pend C# (CSharp) 메소드

EventLoop_Pend() 개인적인 메소드

private EventLoop_Pend ( ) : void
리턴 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.");
            }
        }