public async Task TestTempSymbol() { string url = "https://meta-weather.now.sh/api/location/560743"; char expected = 'C'; WorldWeather worldWeather = new WorldWeather(); char tempS = ' '; //worldWeather.tempSymbol; Assert.Equal(tempS, expected); }
public async Task KeyValueTest() { string url = "https://meta-weather.now.sh/api/location/560743"; string expected = "560743"; var Http = new HttpClient(); WorldWeather.WeatherData get1; get1 = await Http.GetJsonAsync <WorldWeather.WeatherData>(url); WorldWeather worldWeather = new WorldWeather(); string KeyTest = ""; //worldWeather.key; string weatherKey = "";//get1.woeid.ToString(); Assert.Equal(expected, KeyTest); Assert.Equal(expected, weatherKey); }