public void AssertOnLeaves(object obj) { IEnumerator i = this._enclosing.IterateStringFieldsOnObject(obj); while (i.MoveNext()) { SampleTestCase.FieldOnObject fieldOnObject = (SampleTestCase.FieldOnObject)i.Current; Assert.AreNotEqual("modified", fieldOnObject._field.Get(fieldOnObject._object)); } }
public object ActOnRoot(object obj) { this._enclosing.Db().Activate(obj, int.MaxValue); IEnumerator i = this._enclosing.IterateGraphStringFields(obj); while (i.MoveNext()) { SampleTestCase.FieldOnObject fieldOnObject = (SampleTestCase.FieldOnObject)i.Current; fieldOnObject._field.Set(fieldOnObject._object, "modified"); } this._enclosing.Db().Refresh(obj, int.MaxValue); return(obj); }