public void PrintScoreBoardTestNoRecords()
        {
            List <ScoreRecord> testRecords = new List <ScoreRecord>();

            string result = MinesweeperMain.PrintScoreBoard(testRecords);

            Assert.AreEqual <string>(
                "\nScoreboard:\r\nNo records to display!\n\r\n",
                result);
        }
        public void AddChampionRecordTest()
        {
            List <ScoreRecord> testList = new List <ScoreRecord>(3);

            MinesweeperMain.AddChampionRecord(testList, "Mitko", 10);
            MinesweeperMain.AddChampionRecord(testList, "Joro", 14);
            MinesweeperMain.AddChampionRecord(testList, "Eva", 20);

            string actual = MinesweeperMain.PrintScoreBoard(testList);

            Assert.AreEqual <string>("\nScoreboard:\r\n1. Eva --> 20 cells\n2. Joro --> 14 cells\n3. Mitko --> 10 cells\n\r\n", actual);
        }
        public void PrintScoreBoardTest()
        {
            List <ScoreRecord> testRecords = new List <ScoreRecord>();

            testRecords.Add(new ScoreRecord("Mitko", 230));
            testRecords.Add(new ScoreRecord("Gosho", 220));
            testRecords.Add(new ScoreRecord("Pesho", 210));
            testRecords.Add(new ScoreRecord("Joro", 260));
            string result = MinesweeperMain.PrintScoreBoard(testRecords);

            Assert.AreEqual <string>(
                "\nScoreboard:\r\n1. Mitko --> 230 cells\n2. Gosho --> 220 cells\n3. Pesho --> 210 cells\n4. Joro --> 260 cells\n\r\n",
                result);
        }
        public void AddChampionRecordTestMoreRecords()
        {
            List <ScoreRecord> testList = new List <ScoreRecord>(6);

            MinesweeperMain.AddChampionRecord(testList, "Mitko", 10);
            MinesweeperMain.AddChampionRecord(testList, "Joro", 14);
            MinesweeperMain.AddChampionRecord(testList, "Eva", 20);
            MinesweeperMain.AddChampionRecord(testList, "Marko", 10);
            MinesweeperMain.AddChampionRecord(testList, "Gosho", 14);
            MinesweeperMain.AddChampionRecord(testList, "Pesho", 20);
            MinesweeperMain.AddChampionRecord(testList, "Ivo", 10);
            MinesweeperMain.AddChampionRecord(testList, "Stoyan", 14);
            MinesweeperMain.AddChampionRecord(testList, "Petko", 20);

            string actual = MinesweeperMain.PrintScoreBoard(testList);

            Assert.AreEqual <string>("\nScoreboard:\r\n1. Eva --> 20 cells\n2. Petko --> 20 cells\n3. Pesho --> 20 cells\n4. Stoyan --> 14 cells\n5. Gosho --> 14 cells\n\r\n", actual);
        }