public void SkipsReadOnlyProperty() { Type thingType = typeof(Thing); JsonTextReader reader = new JsonTextReader(new StringReader("{ Id : 42 }")); TestTypeDescriptor descriptor = new TestTypeDescriptor(); descriptor.AddReadOnlyProperty("Id"); ComponentImporter importer = new ComponentImporter(thingType, descriptor); importer.Import(reader); Assert.IsFalse(descriptor.GetProperty("Id").SetValueCalled); }