Esempio n. 1
0
        public void PlayerKillEnemi_whenPointIsUp()
        {
            playerPrefsAdapter.HasKey("score").Returns(true);
            playerPrefsAdapter.GetInt("score").Returns(100);
            logic = new LogicPointsPlayer(controllerPointsView, playerPrefsAdapter);

            //action
            logic.PointsUp(2);

            //assert
            playerPrefsAdapter.Received(1).SetInt("score", 102);
            controllerPointsView.Received().ShowPuntuaction(102);
        }
Esempio n. 2
0
 public void AumentarPuntuacion(int puntuacion)
 {
     logicPointsPlayer.PointsUp(puntuacion);
 }