public void AddScore_Correct(int scoreToAdd) { var player = new PlayerClient("player"); player.AddScore(scoreToAdd); Assert.Equal(scoreToAdd, player.Score); }
public void AddScore_NegativeValue_ThrowError() { var player = new PlayerClient("player"); Assert.Throws <ArgumentOutOfRangeException>(() => player.AddScore(-1)); }