Пример #1
0
        public void TestParseMessageTimestamp()
        {
            var now = DateTime.Now;
            var messageTimestamp1 = new MessageTimestamp(new DateTime(now.Year, now.Month, now.Day, now.Hour, now.Minute, now.Second, now.Millisecond));
            var messageTimestamp2 = MessageTimestamp.Parse(messageTimestamp1.ToString());

            Assert.AreEqual(messageTimestamp2, messageTimestamp1);
        }
Пример #2
0
 public void TestOutOfRangeMessageTimestamp()
 {
     MessageTimestamp.Parse("20092406171299789000+600");
 }
Пример #3
0
 public void TestNotNumericMessageTimestamp()
 {
     MessageTimestamp.Parse("AAAA2406171216789000+600");
 }