public void CanSetInstanceProperty() { // Arrange var propertyName = ClassWithPrivateFields.InstancePropertyName; // Act FieldPropertyWrite.Value(target, propertyName, valueToSet); // Assert Assert.Equal(target.DirectInstanceProperty, valueToSet); }
public void Value(object value) { FieldPropertyWrite.Value(target, memberName, value); }