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

            var sunsetTime = cityWeather.GetSunsetTime();

            Assert.Equal(expected, sunsetTime);
        }