public IEnumerator getRemainedTimeTest() { SyncTriggerSystem system = createSystem(); SyncTask task = system.request(1, new EventContext("discover") { { "cards", new int[] { 1, 2, 3 } } }, 3, ALambda.doNothing); yield return(new WaitForSeconds(1)); Assert.True(1 < system.getRemainedTime(task) && system.getRemainedTime(task) <= 2); yield return(new WaitForSeconds(3)); Assert.AreEqual(0, system.getRemainedTime(task)); }