RevitCmdExecutorTests.cs 1018 B

1234567891011121314151617181920212223242526272829303132
  1. using Microsoft.VisualStudio.TestTools.UnitTesting;
  2. using Client.Start;
  3. /* ==============================================================================
  4. * 功能描述:RevitCmdExecutorTests
  5. * 创 建 者:Garrett
  6. * 创建日期:2019/4/16 14:40:52
  7. * ==============================================================================*/
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Text;
  12. using System.Threading.Tasks;
  13. using Newtonsoft.Json.Linq;
  14. namespace Client.Start.Tests
  15. {
  16. [TestClass()]
  17. public class RevitCmdExecutorTests
  18. {
  19. [TestMethod()]
  20. public void ExecuteCmdTest()
  21. {
  22. JObject jObject=new JObject();
  23. jObject.Add("ProjectId", "Pj4201050001");
  24. jObject.Add("UserId", "18612660722");
  25. string json = jObject.ToString();
  26. var executor=new RevitCmdExecutor();
  27. executor.ExecuteCmd("DataCheckCommand", json, new HashSet<string>());
  28. Assert.Fail();
  29. }
  30. }
  31. }