public void GetSinglePlayerTest() { //Arrange SwingDataController swingDataController = new SwingDataController(); Player expectedPlayer = swingDataController.GetLeaderboard()[0]; //Act Player singlePlayer = swingDataController.GetSinglePlayer("Kri"); //Assert Assert.AreEqual(expectedPlayer.PlayerId, singlePlayer.PlayerId); }
public void GetPlayersFromDatabase() { //Arrange SwingDataController swingDataController = new SwingDataController(); int expectedCount = 0; //Act List <Player> playerList = swingDataController.GetLeaderboard(); //Assert Assert.AreNotEqual(expectedCount, playerList.Count); }