public void CompareWithOtherObject() { Player player = new Player(5, 7); ScoreBoard scoreBoard = new ScoreBoard(); player.CompareTo(scoreBoard); }
public void CompareWithNull() { Player player = new Player(5, 7); int actual = player.CompareTo(null); Assert.AreEqual(1, actual); }
public void CompareWithOtherPlayerWithSameMoves() { Player player = new Player(5, 7); Player player2 = new Player(2, 3); int actual = player.CompareTo(player2); Assert.AreEqual(0, actual); }
public void CompareWithOtherPlayerWithMoreMoves() { Player player = new Player(5, 7); Player player2 = new Player(2, 3); player2.MoveDown(); int actual = player.CompareTo(player2); Assert.AreEqual(-1, actual); }