public void TestAddPlayerInScoreboard_Add2Players() { ScoreBoard scoreboard = new ScoreBoard(); File.Delete(scoreboard.GetScoreboardFileLocation()); scoreboard.AddPlayerInScoreboard("Plamen", 1); scoreboard.AddPlayerInScoreboard("Ivo", 2); int playerPosition = 0; StringBuilder expectedScoreboard = new StringBuilder(); expectedScoreboard.AppendFormat("{0}: {1} -> {2}", ++playerPosition, "Plamen", 1).AppendLine(); expectedScoreboard.AppendFormat("{0}: {1} -> {2}", ++playerPosition, "Ivo", 2).AppendLine(); var actualScoreboard = scoreboard.ShowScoreboard(); Assert.AreEqual(expectedScoreboard.ToString(), actualScoreboard); }