Ejemplo n.º 1
0
        public void TestNextTurn()
        {
            Game game = new Game(new Player[] { new Player("XXX"), new Player("YYY") });

            game.NextPlayer();

            Assert.That(game.CurrentPlayer, Is.EqualTo(game.Players[0]));
            game.NextPlayer();
            game.GoForward(game.CurrentPlayer);
            Assert.That(game.CurrentPlayer, Is.EqualTo(game.Players[1]));
            game.NextPlayer();
            game.GoForward(game.CurrentPlayer);
            Assert.That(game.CurrentPlayer, Is.EqualTo(game.Players[0]));
        }
Ejemplo n.º 2
0
        public void TestCrossedStartField()
        {
            Game game = new Game(new Player[] { new Player("XXX"), new Player("YYY") });

            game.SetPlayerPos(game.Players[0], 10);
            game.NextPlayer();
            game.GoForward(game.CurrentPlayer, new int[] { 2, 2 });
            Assert.That(game.Players[0].Money >= 1700, Is.EqualTo(true));
        }