Example #1
0
        public void UseAdditionalLifeTest_LifesMinus()
        {
            GameCore.EnumsAndConstant.GameConstants.PacmanRespointRow  = 1;
            GameCore.EnumsAndConstant.GameConstants.PacmanRespointCell = 1;
            var pacmanServ = new PacmanService(MazeMock.Object, 3, 300);

            pacmanServ.UseAdditionalLife();

            Assert.AreEqual(pacmanServ.Lifes, 2);
        }
Example #2
0
        public void UseAdditionalLife_Lifes0_PacmanDeadTrue()
        {
            GameCore.EnumsAndConstant.GameConstants.PacmanRespointRow  = 1;
            GameCore.EnumsAndConstant.GameConstants.PacmanRespointCell = 1;
            var pacmanServ = new PacmanService(MazeMock.Object, 0, 300);

            pacmanServ.UseAdditionalLife();

            Assert.AreEqual(pacmanServ.Lifes, 0);
            Assert.AreEqual(pacmanServ.IsDead, true);
        }