public void ExpectScoreboardToStringReturnsCorrectScoreboardString() { var scoreboard = new Scoreboard(); var moves = 5; var playerName = "Test Player"; scoreboard.Add(moves, playerName); var actualToString = scoreboard.ToString(); var expectedToString = Constants.Scoreboard + Environment.NewLine + string.Format(Constants.ScoreboardFormat, 1, playerName, moves) + Environment.NewLine; Assert.AreEqual(expectedToString, actualToString); }
public void ExpectScoreboardToStringReturnsConstanstScoreoardIsEmptyString() { var scoreboard = new Scoreboard(); var actualToString = scoreboard.ToString(); var expectedToString = Constants.ScoreboardIsEmpty + Environment.NewLine; Assert.AreEqual(expectedToString, actualToString); }