Ejemplo n.º 1
0
        public void TestScoreBoardEmptyList()
        {
            ScoreBoard sc = new ScoreBoard();

            string actual = sc.ToString();
            string expected = "\nTop Score Board:\n\n-- Score Board is Empty --\n";

            Assert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void TestScoreBoardSeveralPlayersWithSameScore()
        {
            ScoreBoard sc = new ScoreBoard();

            sc.Enter(1, "Pesho");
            sc.Enter(2, "Mitko");
            sc.Enter(2, "Dimitar");

            string actual = sc.ToString();
            string expected = "\nTop Score Board:\n1. Pesho --> 1 guesses\n2. Mitko --> 2 guesses\n2. Dimitar --> 2 guesses\n";

            Assert.AreEqual(actual, expected);
        }