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); }
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); }