Exemplo n.º 1
0
            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));
                }
            }
Exemplo n.º 2
0
            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);
            }