public void TestTryGetPropertyInt() { Reflector rf = new Reflector(); object value = null; bool found = rf.TryGetProperty(robj, "IntProperty", robj.GetType(), out value); Assert.IsTrue(found); Assert.AreEqual(1, value); Assert.IsFalse(rf.TryGetField(robj, "IntProperty", robj.GetType(), out value)); }