Ejemplo n.º 1
0
        public void ReadDateTimeNullTest()
        {
            byte[] bytes = "7E0000000000000000000000000000007E".ToHexBytes();
            JT808MessagePackReader jT808MessagePackReader = new JT808MessagePackReader(bytes);

            Assert.Equal(JT808Package.BeginFlag, jT808MessagePackReader.ReadStart());
            Assert.Null(jT808MessagePackReader.ReadDateTimeNull_YYYYMMDD());
            Assert.Null(jT808MessagePackReader.ReadDateTimeNull_HHmmssfff());
            Assert.Null(jT808MessagePackReader.ReadDateTimeNull_yyMMddHHmmss());
            Assert.Equal(JT808Package.EndFlag, jT808MessagePackReader.ReadEnd());
        }