private void TestHasAttributeForAttributesOnBaseClass(string propertyName) { var propertyAttributeClass = new InheritedPropertyAttributeTest(); this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(InjectAttribute), true); this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), false); this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NamedAttribute), false); }
private void TestGetCustomAttributesExtendedForAttributesOnBaseClass(string propertyName) { var propertyAttributeClass = new InheritedPropertyAttributeTest(); this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(InjectAttribute), true, new[] { new InjectAttribute() }); this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(InjectAttribute), false, new InjectAttribute[0]); this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), true, new NotInheritedInjectAttribute[0]); this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NamedAttribute), true, new NamedAttribute[0]); }