public void DeclaringType(Type type, string name) { PropertyInfo propertyInfo = GetProperty(type, name); Assert.Equal(type, propertyInfo.DeclaringType); }