public void Client_GetStarship_ShouldNullRef_IfNotBetween0_43(int id) { var client = new StarwarsApiClient(); var ex = Record.Exception(() => client.GetStarship(id)); Assert.NotNull(ex); }
public void Client_GetStarship_ShouldReturnStarShipJson_IfIdBetween0_43(int id) { var client = new StarwarsApiClient(); var starshipInfo = client.GetStarship(id); Assert.IsType <Starship>(starshipInfo); }