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); }
public void TestScoreBoardEnterMethod() { ScoreBoard sc = new ScoreBoard(); sc.Enter(1, "Mitko"); sc.Enter(2, "Niki"); sc.Enter(3, "Conko"); sc.Enter(4, "Viki"); sc.Enter(5, "Viki"); bool actual = sc.HasToSaveScore(6); bool expected = false; Assert.AreEqual(expected, actual); }