public void GetAllVideoGames_VideoGamesNotFound() { var controller = new VideoGameController(); var result = controller.GetGame(15); Assert.IsInstanceOfType(result, typeof(NotFoundResult)); }
public void GetAllVideoGames_ParticularVideoGames() { var testVideoGames = GetTestVideoGames(); var controller = new VideoGameController(); var result = controller.GetGame(1) as OkNegotiatedContentResult <VideoGame>; Assert.IsNotNull(result); Assert.AreEqual(testVideoGames[0].p_GameId, result.Content.p_GameId); }