a
This commit is contained in:
32
00.未分类/UnitTestProject2/UnitTest1.cs
Normal file
32
00.未分类/UnitTestProject2/UnitTest1.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using Kingdee.BOS.Orm.DataEntity;
|
||||
using Kingdee.BOS.Orm.Metadata.DataEntity;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UnitTestProject2
|
||||
{
|
||||
[TestClass]
|
||||
public class UnitTest1
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestMethod1()
|
||||
{
|
||||
|
||||
//var a = new DynamicObject(new DynamicObjectType("COUNT_GAIN"));
|
||||
|
||||
var a = new Dictionary<string, Dictionary<string, string>>();
|
||||
a.Add("a", new Dictionary<string, string>());
|
||||
a.Add("b", new Dictionary<string, string>());
|
||||
|
||||
var keys = new[] { "a", "a", "b" };
|
||||
foreach (var key in keys)
|
||||
{
|
||||
var item = a[key];
|
||||
item.Add("ttt", "1232");
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user