예제 #1
0
        public void ReadNullableTimeSimple_Nullable()
        {
            var encoder = new ClassicDecoder(StringToBuffer("01-00-00"));

            Assert.AreEqual(null, encoder.ReadNullableTimeSimple());
        }
예제 #2
0
        public void ReadNullableTimeSimple_1()
        {
            var encoder = new ClassicDecoder(StringToBuffer("09-00-01-01-00-00-00-00-00-00-00"));

            Assert.AreEqual(new TimeSpan(0, 0, 1), encoder.ReadNullableTimeSimple());
        }