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); }
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); }
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); }
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); }