Пример #1
0
 public void PlayerCheckPointsAndExist_whenReturnNumberOfPoints()
 {
     playerPrefsAdapter.HasKey("score").Returns(true);
     playerPrefsAdapter.GetInt("score").Returns(100);
     logic = new LogicPointsPlayer(controllerPointsView, playerPrefsAdapter);
     //assert
     Assert.AreEqual(100, logic.GetPoints());
 }
Пример #2
0
 public int GetPoints()
 {
     return(playerPrefsAdapter.GetInt("score"));
 }