public void GetWeatherByLocation_InvalidZip_Null() { Weather testWeather = new Weather(); string zipCheck = "94"; WeatherApi testWeatherApi = new WeatherApi(); testWeather = testWeatherApi.GetWeatherByLocation(zipCheck); Assert.IsNull(testWeather); }
public void GetWeatherByLocation_ValidZip_NotNull() { //checks if a weather object returned from the GetWeatherByLocation is null Weather testWeather = new Weather(); string zipCheck = "94121"; //San Francisco, CA WeatherApi testWeatherApi = new WeatherApi(); testWeather = testWeatherApi.GetWeatherByLocation(zipCheck); Assert.IsNotNull(testWeather); }