示例#1
0
        public void RoundTrip_Properties(string propertyName, object value)
        {
            Delta <DeltaModel> delta = new Delta <DeltaModel>();

            Type propertyType;

            Assert.True(delta.TryGetPropertyType(propertyName, out propertyType));

            Assert.True(delta.TrySetPropertyValue(propertyName, value));

            object retrievedValue;

            delta.TryGetPropertyValue(propertyName, out retrievedValue);
            Assert.Equal(value, retrievedValue);
        }