Beispiel #1
1
 public void AddTest()
 {
     Scoreboard target = new Scoreboard();
     string fileName = "AddTest.txt";
     Player player = new Player();
     player.Name = "nakov";
     player.Points = 10;
     target.Add(fileName, player);
 }
Beispiel #2
1
        public void ShowTest()
        {
            Scoreboard target = new Scoreboard();
            string fileName = "ShowTest.txt";
            Player player = new Player();
            player.Name = "nakov";
            player.Points = 10;
            target.Add(fileName, player);

            string expected = "1: nakov -> 10" + Environment.NewLine;
            string actual;
            actual = target.Show(fileName);
            Assert.AreEqual(expected, actual);
        }