public void CallPrivateValueMethod() { Class instance = new Class(); ActionMethod result = sut.GetAction(privateValueMethod); result(instance, new object[] { 1 }); Assert.AreEqual(1, instance.GetPrivateValueField()); }
public void SetPrivateValueField() { Class instance = new Class(); SetMethod result = sut.GetFieldSetter(privateValueField); result(instance, 1); Assert.AreEqual(1, instance.GetPrivateValueField()); }