Exemple #1
0
        public void PlayerIsInJail()
        {
            var player = new Player("Name");
            var action = new GoToJailAction();

            action.ProcessAction(player);

            Assert.IsTrue(player.IsInJail);
        }
Exemple #2
0
        public void PlayerLocationIsSetToJailLocation()
        {
            var player = new Player("Name");
            var action = new GoToJailAction();

            action.ProcessAction(player);

            Assert.AreEqual(LocationConstants.JailIndex, player.Location);
        }