public void TestLoading()
        {
            PersistentData data = SettingsLoader.GetCurrentSettingsData();

            SettingsLoader.LoadSettingsFromDisk();
            PersistentData data2 = SettingsLoader.GetCurrentSettingsData();

            Assert.AreNotEqual(data, data2);
        }
Ejemplo n.º 2
0
        public void TestInit()
        {
            SettingsLoader.LoadSettingsFromDisk();
            PersistentData currentData = SettingsLoader.GetCurrentSettingsData();

            WeatherHandler weather = new WeatherHandler(currentData.openWeatherMapAPIKey, currentData.plz);
            WeatherData    data    = weather.GetCurrentWeatherData();

            Assert.IsNotNull(data, "Weather Data is null");
        }
        public void TestInitializing()
        {
            PersistentData data = SettingsLoader.GetCurrentSettingsData();

            Assert.IsNotNull(data);
        }