public async Task RawResponseIsExpectedJson() { var forecast = await _darkSky.GetDarkSkyResponse(_latitude, _longitude, new DarkSkyService.OptionalParameters { ExtendHourly = true, DataBlocksToExclude = new List <ExclusionBlock> { ExclusionBlock.Flags }, LanguageCode = "x-pig-latin", MeasurementUnits = "si", }); var model = JsonConvert.DeserializeObject <Forecast>(forecast.RawResponse); Assert.NotNull(forecast); Assert.NotNull(forecast.Headers); Assert.IsType <Forecast>(model); }