Пример #1
0
        public void GetSunriseTime_UnixTime_ValidDateTimeString(string expected, long unixTime)
        {
            var sysData = new SysData()
            {
                Sunrise = unixTime
            };
            var cityWeather = new CityWeather()
            {
                SysData = sysData
            };

            var sunriseTime = cityWeather.GetSunriseTime();

            Assert.Equal(expected, sunriseTime);
        }