CmdGenetorTests.cs 690B

1234567891011121314151617181920212223242526272829
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using DotNettyFrom.generatecmd;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace DotNettyFrom.generatecmd.Tests
  9. {
  10. [TestClass()]
  11. public class CmdGenetorTests
  12. {
  13. [TestMethod()]
  14. public void GetLoginCmdTest()
  15. {
  16. }
  17. [TestMethod()]
  18. public void GetHeartbeatTest()
  19. {
  20. CmdGenetor c = CmdGenetor.GetInstance().SetDeviceId("000000000002");
  21. string cmd = c.GetLoginCmd("3839383630324731313931353530333339393137");
  22. Console.WriteLine(cmd);
  23. }
  24. }
  25. }