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.

21 lines
484 B

  1. using JT809.Protocol.JT809Extensions;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using Xunit;
  6. namespace JT809.Protocol.Test.JT809Extensions
  7. {
  8. public class JT809BinaryExtensionsTest
  9. {
  10. [Fact]
  11. public void Test1()
  12. {
  13. string vno = "粤A12345";
  14. byte[] bytes = JT809BinaryExtensions.encoding.GetBytes(vno);
  15. Assert.Equal(7,vno.Length);
  16. Assert.Equal(8, bytes.Length);
  17. }
  18. }
  19. }