예제 #1
0
        public void TestDrainOnClose()
        {
            var eventDispatcher = new TestEventDispatcher();

            SetEventProcessor(eventDispatcher);

            UserEvent userEvent = BuildConversionEvent(EventName);

            EventProcessor.Process(userEvent);
            eventDispatcher.ExpectConversion(EventName, TestUserId);

            Thread.Sleep(1500);

            Assert.True(eventDispatcher.CompareEvents());
            Assert.AreEqual(0, EventProcessor.EventQueue.Count);
        }