123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- using DeviceInfoToAliIotHubViaGateway;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using static DeviceInfoToAliIotHubViaGateway.App;
- namespace DeviceInfoToAliIotHubViaGatewayTest
- {
- [TestClass]
- public class UnitTest1
- {
- [TestMethod]
- public void TestMethod1()
- {
- List<KeyValuePair<string, object>> list = new List<KeyValuePair<string, object>>()
- {
- new KeyValuePair<string, object>("p1","v1"),
- };
- var vv = list.WrapToPropertiesChangedInLocalJson(12);
- }
- [TestMethod]
- public void TestMethod2()
- {
- List<KeyValuePair<string, object>> list = new List<KeyValuePair<string, object>>()
- {
- new KeyValuePair<string, object>("p1",222),
- };
- var vv = list.WrapToPropertiesChangedInLocalJson(12);
- }
- [TestMethod]
- public void TestMethod6()
- {
- List<KeyValuePair<string, object>> list = new List<KeyValuePair<string, object>>()
- {
- new KeyValuePair<string, object>("p1","v1"),
- new KeyValuePair<string, object>("p2","v2"),
- };
- var vv = list.WrapToPropertiesChangedInLocalJson(12);
- }
- [TestMethod]
- public void TestMethod8()
- {
- List<KeyValuePair<string, object>> list = new List<KeyValuePair<string, object>>()
- {
- new KeyValuePair<string, object>("p1","v1"),
- new KeyValuePair<string, object>("p2",2),
- new KeyValuePair<string, object>("p4","v4"),
- };
- var vv = list.WrapToPropertiesChangedInLocalJson(12);
- }
- [TestMethod]
- public void JsonSerializeTestMethod0()
- {
-
-
-
-
-
-
-
-
- }
- }
- }
|