public void WeatherManager_StopWeatherRegion_StartTime() { var weatherMgr = new WeatherManager(new SimpleScheduler()); var region = FakeRegion(); weatherMgr.RegisterRegion(region); weatherMgr.StartWeather(1); weatherMgr.StopWeather(1); Assert.AreEqual(0, weatherMgr[1].StartTime); }
public void WeatherManager_StopWeatherRegion_ReturnTrue() { var weatherMgr = new WeatherManager(new SimpleScheduler()); var region = FakeRegion(); weatherMgr.RegisterRegion(region); weatherMgr.StartWeather(1); Assert.IsTrue(weatherMgr.StopWeather(1)); }