public void for_throws_if_property_does_not_have_a_get_and_set(Type declaringType) { Assert.Throws<SerializationException>(() => { PropertyDescriptor.For(declaringType.GetProperty("Property")); }); }