public void SetValueWhenNoSet() { PropertyInfo readonlyNameProperty = typeof(ReadOnlMemberClass).GetProperty("ReadOnlyName"); ReflectorMember member = ReflectorMember.Create(readonlyNameProperty); ReadOnlMemberClass testClass = new ReadOnlMemberClass(); member.SetValue(testClass, "Hello"); }
public void SetValueWhenNoSet() { PropertyInfo readonlyNameProperty = typeof(ReadOnlMemberClass).GetProperty("ReadOnlyName"); ReflectorMember member = ReflectorMember.Create(readonlyNameProperty); ReadOnlMemberClass testClass = new ReadOnlMemberClass(); member.SetValue(testClass, "Hello"); }