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