public void BasicTest() { dynamic obj = new SimpleViewModel(); obj.AddDependModel(new SimpleClass()); obj.Validate(1, 1, 1, 0); obj.ClearCount(); obj.SimpleProperty1 = 0; obj.Validate(1, 0, 1, 0); obj.ClearCount(); obj.AddDependModel(new BaseModel()); obj.Validate(0, 0, 1, 2); obj.ClearCount(); obj.BaseProperty1 = 0; obj.Validate(0, 0, 1, 1); }
public void BasicTest() { dynamic obj = new SimpleViewModel(); obj.AddDependModel(new SimpleClass()); obj.Validate(1, 1, 1, 0); obj.ClearCount(); obj.SimpleProperty1 = 0; obj.Validate(1, 0, 1, 0); obj.ClearCount(); obj.AddDependModel(new BaseModel()); obj.Validate(0, 0, 1, 2); obj.ClearCount(); obj.BaseProperty1 = 0; obj.Validate(0, 0, 1, 1); }