public void CheckAnyChanged_AnyChange_Should_OK() { var dynamicHashModel = _dynamicHashModel.AsDynamic(); dynamicHashModel.A.Name = "Changed"; _dynamicHashModel.CheckAnyChanged().ShouldTrue(); //same logic => ((bool)dynamicHashModel.CheckAnyChanged()).ShouldTrue(); }
public void MyTestInitialize() { _dynamicHashModel = new DynamicHashDictionary(); var dynamicHashModel = _dynamicHashModel.AsDynamic(); var mockTraceItemA = new MockTraceItem(); dynamicHashModel.A = mockTraceItemA; var mockTraceItemB = new MockTraceItem(); mockTraceItemB.Items.Add(new MockTraceItem()); mockTraceItemB.Items.Add(new MockTraceItem()); dynamicHashModel.B = mockTraceItemB; var mockTraceItemC = new MockTraceItem(); dynamicHashModel.C = mockTraceItemC; }