Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }