public void askAndGetRequestsTest()
        {
            SyncTriggerSystem system = createSystem();
            SyncTask          task   = system.request(1, new EventContext("discover")
            {
                { "cards", new int[] { 1, 2, 3 } }
            }, float.MaxValue, null);

            Assert.AreEqual(SyncTaskState.paused, task.state);
            Assert.AreEqual(task, system.getAllRequestTasks()[0]);
        }
        public IEnumerator timeoutTest()
        {
            SyncTriggerSystem system = createSystem();
            bool     flag            = false;
            SyncTask task            = system.request(1, new EventContext("discover")
            {
                { "cards", new int[] { 1, 2, 3 } }
            }, 3, new ALambda(game => flag = true));

            yield return(new WaitForSeconds(3));

            Assert.AreEqual(SyncTaskState.finished, task.state);
            Assert.AreEqual(0, system.getAllRequestTasks().Length);
            Assert.True(flag);
        }