コード例 #1
0
        public void GameRuns()
        {
            GameManager gameManager = GameManagerTests.CreateTestGameManager();

            gameManager.StartGame();

            // Confirm is first player's turn
            Assert.IsTrue(gameManager.GetPlayer(0).isTurn);
        }
コード例 #2
0
        public void GoesToNextPlayerTurn()
        {
            GameManager gameManager = GameManagerTests.CreateTestGameManager();

            gameManager.StartGame();
            gameManager.GetPlayer(0).EndTurn();

            // Confirm has moved on to next player
            Assert.AreEqual(1, gameManager.GetCurrentTurnPlayerId());
            Assert.AreEqual(gameManager.GetPlayer(1), gameManager.GetCurrentTurnPlayer());
        }