Пример #1
0
		public void CreateWritable_CreateWritable_ReturnsNewWritableWithSameValue() {
			var context = new Context("context");
			var prop = new Property<MyDummyClass1>("propertyname", context, CultureInfo.InvariantCulture);
			var dummyObject = new MyDummyClass1("my dummy object");
			prop.Value = dummyObject;
			var newProp = prop.CreateWritable();
			Assert.AreNotSame(prop, newProp);
			Assert.AreEqual("my dummy object", ((Property<MyDummyClass1>)newProp).Value.MyString);
		}