public IEnumerator closeTest()
        {
            THHGame game = TestGameflow.initStandardGame(option: new GameOption()
            {
                timeoutForInitReplace = 5
            });
            Task task = game.run();

            game.close();
            yield return(new WaitForSeconds(5.5f));

            Assert.False(game.isRunning);
        }
Exemple #2
0
        public IEnumerator closeTest()
        {
            THHGame game = TestGameflow.initStandardGame(option: new GameOption()
            {
                timeout = 5
            });
            Task task = game.run();

            game.close();
            yield return(new WaitForSeconds(5.5f));

            Assert.True(task.IsCanceled);
        }