示例#1
0
 /// <summary>
 /// 初始化
 /// </summary>
 /// <param name="includeProperties"></param>
 public void InitIncludeProperties(params string[] includeProperties)
 {
     if (_includePropertiesInited)
     {
         throw new InvalidOperationException("InitIncludeProperties Should Invoke Only Once");
     }
     _includeProperties       = includeProperties.ToList();
     _includePropertiesInited = true;
     //clear all set properties before init invoke!
     _hashData = new HashDictionary();
 }
示例#2
0
        public void MyTestInitialize()
        {
            _hashModel = new HashDictionary();
            var mockTraceItemA = new MockTraceItem();

            _hashModel.Add("A", mockTraceItemA);

            var mockTraceItemB = new MockTraceItem();

            mockTraceItemB.Items.Add(new MockTraceItem());
            mockTraceItemB.Items.Add(new MockTraceItem());
            _hashModel.Add("B", mockTraceItemB);

            var mockTraceItemC = new MockTraceItem();

            _hashModel.Add("C", mockTraceItemC);
        }
示例#3
0
 public void MyTestCleanup()
 {
     _hashModel = null;
 }