Beispiel #1
0
        public void Client_GetStarship_ShouldNullRef_IfNotBetween0_43(int id)
        {
            var client = new StarwarsApiClient();
            var ex     = Record.Exception(() => client.GetStarship(id));

            Assert.NotNull(ex);
        }
Beispiel #2
0
        public void Client_GetStarship_ShouldReturnStarShipJson_IfIdBetween0_43(int id)
        {
            var client       = new StarwarsApiClient();
            var starshipInfo = client.GetStarship(id);

            Assert.IsType <Starship>(starshipInfo);
        }