public void Wrapper_Copy_CopyReadonlyPropertyThrows() { var propertyWrapper = new PropertyWrapper<TestObjectWithReadonlyProperty, int>(o => o.ReadonlyProperty); var instance1 = new TestObjectWithReadonlyProperty(); var instance2 = new TestObjectWithReadonlyProperty(); propertyWrapper.Copy(instance1, instance2); }
public void Wrapper_Copy_CopyReadonlyPropertyThrows() { var propertyWrapper = new PropertyWrapper<TestObjectWithReadonlyProperty, int>(o => o.ReadonlyProperty); var instance1 = new TestObjectWithReadonlyProperty(); var instance2 = new TestObjectWithReadonlyProperty(); propertyWrapper.Copy(instance1, instance2); }