Ejemplo n.º 1
0
        public void TurnToNextPlayerAndGetPlayerInTurn_PlayerTurnCycle()
        {
            List <Traveler> travelers = new List <Traveler>();

            travelers.Add(new Traveler());
            travelers.Add(new Traveler());
            TurnController turn = new TurnController(travelers);

            turn.TurnToNextPlayer();
            Assert.AreEqual(turn.GetPlayerInTurn(), travelers[0]);
            turn.TurnToNextPlayer();
            Assert.AreEqual(turn.GetPlayerInTurn(), travelers[1]);
            turn.TurnToNextPlayer();
            Assert.AreEqual(turn.GetPlayerInTurn(), travelers[0]);
        }