public void ShouldIgnorePropertiesWithSpecifiedAttributes() { PropertyReader.AddIgnoreAttributes(new[] { typeof(IgnoreMeAttribute) }); var propertiesList = reader.PropertiesList(new TestStub()); Assert.That(propertiesList.Count, Is.EqualTo(1)); Assert.That(propertiesList[0].Name, Is.EqualTo("NotIgnored")); }
public static void AddIgnoreAttributes(IEnumerable <Type> types) { PropertyReader.AddIgnoreAttributes(types); }