Example #1
0
        public void ReadNullableDateTimeSimple_Nullable()
        {
            var encoder = new ClassicDecoder(StringToBuffer("01-00-00"));

            Assert.AreEqual(null, encoder.ReadNullableDateTimeSimple());
        }
Example #2
0
        public void ReadNullableDateTimeSimple_1()
        {
            var encoder = new ClassicDecoder(StringToBuffer("09-00-01-01-00-00-00-00-00-00-00"));

            Assert.AreEqual(DateUtility.Epoch.AddSeconds(1), encoder.ReadNullableDateTimeSimple());
        }