Exemplo n.º 1
0
        public void Deserialize_JsonForecastThrow()
        {
            var city      = execute().Result;
            var forecast  = city[0].Forecast;
            var exception = Record.Exception(() => HttpGrabber.Deserialize_Json(forecast).Result);

            Assert.Null(exception);
        }
Exemplo n.º 2
0
        public void Deserialize_JsonWeatherThrow()
        {
            var city      = execute().Result;
            var weather   = city[0].Weather;
            var exception = Record.Exception(() => HttpGrabber.Deserialize_Json(weather).Result);

            Assert.Null(exception);
        }
Exemplo n.º 3
0
        public void Deserialize_JsonForecast()
        {
            var city     = execute().Result;
            var forecast = city[0].Forecast;
            var result   = HttpGrabber.Deserialize_Json(forecast);

            Assert.NotNull(result);
        }
Exemplo n.º 4
0
        public void Deserialize_JsonWeather()
        {
            var    city     = execute().Result;
            var    weather  = city[0].Weather;
            var    result   = HttpGrabber.Deserialize_Json(weather).Result;
            string cityName = result.name;

            Assert.NotNull(result);
            Assert.Equal("Rzeszow", cityName);
        }