public void Add_IsCumulative() { var scores = new ScoreCount(4); scores.Add(2, new[] { new Card(CardType.Blue, 1, 4) }); scores.Add(2, new[] { new Card(CardType.Blue, 1, 3) }); Assert.AreEqual(7, scores.Score(2)); Assert.AreEqual(0, scores.Score(0)); Assert.AreEqual(0, scores.Score(1)); Assert.AreEqual(0, scores.Score(3)); }
public void Add_AddsScoreForCorrectPlayer() { var scores = new ScoreCount(4); var cards = new[] { new Card(CardType.Blue, 1, 4), new Card(CardType.Blue, 1, 3) }; scores.Add(2, cards); Assert.AreEqual(7, scores.Score(2)); Assert.AreEqual(0, scores.Score(0)); Assert.AreEqual(0, scores.Score(1)); Assert.AreEqual(0, scores.Score(3)); }