/// <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(); }
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); }
public void MyTestCleanup() { _hashModel = null; }