public void SetsObjectField() { var inst = new TestClass(); inst.Set("PrivateField", "hello world"); Assert.AreEqual("hello world", type.GetAnyField("PrivateField").GetValue(inst)); }
public void GetsObjectProperty() { var inst = new TestClass(); inst.Set("PublicProperty", "hello world"); Assert.AreEqual("hello world", type.GetGetterSetter("PublicProperty").GetValue(inst, null)); }