public void TestZeros() { // arrange ScoreGame bGame = new ScoreGame(new[] { 0, 0, 0 }); ScoreGame aGame = new ScoreGame(new[] { 0, 0, 0 }); // act string result = bGame.Score(aGame); // assert Assert.AreEqual("0 0", result); }
public string Score(ScoreGame other) => $"{ScoreAgainstAnother(this, other)} {ScoreAgainstAnother(other, this)}";
private int ScoreAgainstAnother(ScoreGame one, ScoreGame two) => _scoreArray.Where((t, index) => one._scoreArray[index] > two._scoreArray[index]).Count();