public void UpdateGameScoreLiveTest() { //Arrange Football football = new Football(); football.StartGame("Senegal", "Marroco"); //Act List <FootballGame> games = football.UpdateGameScoreLive("Senegal", "Marroco", 1, 2); List <FootballGame> gamesExpected = FootballAserts.UpdateGameScoreLiveAssert(); //Assert Assert.IsTrue(CompareGamesList(gamesExpected, games)); }
public void StartGameTest() { //Arrange Football football = new Football(); //Act List <FootballGame> games = football.StartGame("Senegal", "Marroco"); List <FootballGame> gamesExpected = FootballAserts.StartGameAssert(); //Assert Assert.IsTrue(CompareGamesList(gamesExpected, games)); //I have considered to do it with CollectionAssert.AreEqual, but it compares also the references and it does not work, //I also considered to do it with linq instead of the for loop, but the two loops are nested and the result is not correct, //at the end I have thought to do that method, I do not know if some other more effective way to do it. }