public void TotalScore_ReturnsSumOfAllGames() { var g = new SimpleGame(); Assert.AreEqual(0, g.TotalScore); g.Game1 = 250; g.Game2 = 125; Assert.AreEqual(375, g.TotalScore); }
public void SetGame1_InvalidScore_ThrowsArgumentOutOfRangeException(int?score) { var g = new SimpleGame(); Assert.ThrowsException <ArgumentOutOfRangeException>(() => g.Game1 = score); }