public void SetPrivateFieldWorks() { var obj = new HasPrivateField(42); obj.SetPrivateFieldValue("field", 73); Assert.AreEqual(73, obj.GetPrivateFieldValue <int>("field")); }
public void SetPrivateFieldWorks() { var obj = new HasPrivateField(42); obj.SetPrivateFieldValue("field", 73); Assert.AreEqual(73, obj.GetPrivateFieldValue<int>("field")); }
public void GetPrivateFieldWorks() { var obj = new HasPrivateField(42); Assert.AreEqual(42, obj.GetPrivateFieldValue <int>("field")); }
public void GetPrivateFieldWorks() { var obj = new HasPrivateField(42); Assert.AreEqual(42, obj.GetPrivateFieldValue<int>("field")); }