public void CompareTo_Lower()
        {
            PlayerScore testPlayer1 = new PlayerScore("Pesho", 12);
            PlayerScore testPlayer2 = new PlayerScore("Pesho", 122);

            Assert.AreEqual(-1, testPlayer1.CompareTo(testPlayer2));
        }
        public void EqualsTest_True()
        {
            PlayerScore testPlayer1 = new PlayerScore("Pesho", 12);
            PlayerScore testPlayer2 = new PlayerScore("Pesho", 12);

            bool areEqual = testPlayer1.Equals(testPlayer2);

            Assert.IsTrue(areEqual);
        }
 /// <summary>
 /// Create new object to be storred in the score file.
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="guesses">Number of guesses</param>
 public void AddScore(string name, int guesses)
 {
     PlayerScore newScore = new PlayerScore(name, guesses);
     this.scores.Add(newScore);
 }
 public void ToStringTest()
 {
     string expectedString = "Pesho --> 12 guesses";
     PlayerScore testPlayer = new PlayerScore("Pesho", 12);
     Assert.AreEqual(expectedString, testPlayer.ToString());
 }
 public void ConstructorTest_NullName()
 {
     PlayerScore testPlayer = new PlayerScore(null, 12739812);
 }
 public void ConstructorTest_EmptyName()
 {
     PlayerScore testPlayer = new PlayerScore("", 12739812);
 }
 public void ConstructorTest()
 {
     PlayerScore testPlayer = new PlayerScore("Looser", 12739812);
 }