public void GetStartGameComDiscoMenorOuIgualAZero() { Game game = null; var controller = new GameApiController(gameService); controller.Request = new HttpRequestMessage(); controller.Configuration = new HttpConfiguration(); var response = controller.StartGame(0); response.TryGetContentValue(out game); Assert.IsNull(game); }
public void GetStartGameComDiscoMaiorQueZero() { Game game = null; var quantidadeDeDiscos = 3; var controller = new GameApiController(gameService); controller.Request = new HttpRequestMessage(); controller.Configuration = new HttpConfiguration(); var response = controller.StartGame(quantidadeDeDiscos); response.TryGetContentValue(out game); Assert.IsNotNull(game); Assert.AreEqual(quantidadeDeDiscos, game.Torres.ElementAt(0).Discos.Count); }