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()); }
public int GetPoints() { return(playerPrefsAdapter.GetInt("score")); }