Пример #1
0
        public void TestParsing2()
        {
            const string parseTime    = "2012-01-31T20:00:00.0000000Z";
            var          apiDateTime1 = ApiDateTime.Parse(parseTime);
            var          dateTime     = (DateTime)apiDateTime1;
            var          utcTime      = apiDateTime1.UtcTime;

            Assert.AreEqual(dateTime.Kind, utcTime.Kind);
            Assert.AreEqual(dateTime, utcTime);
            Assert.AreEqual(apiDateTime1.ToString(), parseTime);
        }