Пример #1
0
        public void GetTimeSpanByZoneId_Empty()
        {
            var tSpan    = "10:55:00";
            var resolver = new DateTimeResolver(tSpan);
            var ts       = resolver.GetTimeSpanByZoneId(string.Empty);

            Assert.AreEqual(TimeSpan.Zero, ts);
        }
Пример #2
0
        public void GetTimeSpanByZoneId()
        {
            var tSpan    = "10:55:00";
            var resolver = new DateTimeResolver(tSpan);
            var ts       = resolver.GetTimeSpanByZoneId("China Standard Time");

            Assert.AreEqual(TimeSpan.FromHours(8), ts);
        }