public void ForecastTest() { DarkSky darkSky = new DarkSky(); Geolocation location = new Geolocation(); //string expected = string.Empty; // TODO: Initialize to an appropriate value ForecastObject fo = darkSky.Forecast(location); Console.WriteLine("{0}", fo.DayPrecipitationList[0].Type); //Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void PrecipitationTest() { DarkSky darkSky = new DarkSky(); Geolocation location = new Geolocation(); //string expected = string.Empty; // TODO: Initialize to an appropriate value List<KeyValuePair<Geolocation, int>> list = new List<KeyValuePair<Geolocation, int>>() { new KeyValuePair<Geolocation, int>(location, 1331416523), new KeyValuePair<Geolocation, int>(location, 1331416777) }; PrecipitationObject po = darkSky.Precipitation(list); Console.WriteLine("{0}", po.PrecipitationList[0].Type); //Assert.AreEqual(expected, actual); Assert.Inconclusive("Verify the correctness of this test method."); }
public void ThrowsExceptionOnEmptyApiKey() { Assert.Throws<System.Exception>(delegate { var darkSky = new DarkSky(""); }); }
public void CreatesClientWithApiKey() { const string clientKey = "clientApiKey"; var darkSky = new DarkSky(clientKey); Assert.Equal(clientKey, darkSky.ApiKey); }
public void CallsForecast() { const string clientKey = "clientApiKey"; var darkSky = new DarkSky(clientKey); }