public void for_throws_if_property_is_decorated_but_declaring_type_is_not() { Assert.Throws<SerializationException>(() => { PropertyDescriptor.For(typeof(UndecoratedTypeWithDecoratedProperty).GetProperty("Property")); }); }