You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using JT809.Protocol;
- using JT809.Protocol.JT809Extensions;
- using JT809.Protocol.JT809MessageBody;
- using JT809.Protocol.JT809Exceptions;
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Xunit;
-
- namespace JT809.Protocol.Test.JT809MessageBody
- {
- public class JT809_0x1007Test
- {
- [Fact]
- public void Test1()
- {
- JT809_0x1007 jT809_0X1007 = new JT809_0x1007();
- jT809_0X1007.ErrorCode = JT809Enums.JT809_0x1007_ErrorCode.主链路断开;
- var hex = JT809Serializer.Serialize(jT809_0X1007).ToHexString();
- }
-
- [Fact]
- public void Test2()
- {
- var bytes = "00".ToHexBytes();
- JT809_0x1007 jT809_0X1007 = JT809Serializer.Deserialize<JT809_0x1007>(bytes);
- Assert.Equal(JT809Enums.JT809_0x1007_ErrorCode.主链路断开, jT809_0X1007.ErrorCode);
- }
- }
- }
|