Example #1
0
        public void Test2()
        {
            var bytes = "00".ToHexBytes();
            JT809_0x9200_0x9209 jT809_0X9200_0X9209 = JT809Serializer.Deserialize <JT809_0x9200_0x9209>(bytes);

            Assert.Equal(JT809_0x9209_Result.成功_上级平台即刻补发, jT809_0X9200_0X9209.Result);
        }
Example #2
0
        public void Test_2019_2()
        {
            var bytes = "00160000002100".ToHexBytes();
            JT809_0x9200_0x9209 jT809_0X9200_0X9209 = JT809_2019_Serializer.Deserialize <JT809_0x9200_0x9209>(bytes);

            Assert.Equal(JT809_0x9209_Result.成功_上级平台即刻补发, jT809_0X9200_0X9209.Result);
            Assert.Equal(22, jT809_0X9200_0X9209.SourceDataType);
            Assert.Equal(33u, jT809_0X9200_0X9209.SourceMsgSn);
        }
Example #3
0
        public void Test1()
        {
            JT809_0x9200_0x9209 jT809_0X9200_0X9209 = new JT809_0x9200_0x9209
            {
                Result = JT809_0x9209_Result.成功_上级平台即刻补发
            };
            var hex = JT809Serializer.Serialize(jT809_0X9200_0X9209).ToHexString();

            Assert.Equal("00", hex);
        }
Example #4
0
        public void Test_2019_1()
        {
            JT809_0x9200_0x9209 jT809_0X9200_0X9209 = new JT809_0x9200_0x9209
            {
                Result         = JT809_0x9209_Result.成功_上级平台即刻补发,
                SourceDataType = 22,
                SourceMsgSn    = 33
            };
            var hex = JT809_2019_Serializer.Serialize(jT809_0X9200_0X9209).ToHexString();

            Assert.Equal("00160000002100", hex);
        }