예제 #1
0
        public void CanSetInstanceProperty()
        {
            // Arrange
            var propertyName = ClassWithPrivateFields.InstancePropertyName;

            // Act
            FieldPropertyWrite.Value(target, propertyName, valueToSet);

            // Assert
            Assert.Equal(target.DirectInstanceProperty, valueToSet);
        }
예제 #2
0
 public void Value(object value)
 {
     FieldPropertyWrite.Value(target, memberName, value);
 }