private void TestGetCustomAttributesExtended(string propertyName, bool inherit)
 {
     var propertyAttributeClass = new PropertyAttributeTest();
     this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(InjectAttribute), inherit, new[] { new InjectAttribute(), new NotInheritedInjectAttribute() });
     this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), inherit, new[] { new NotInheritedInjectAttribute() });
     this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NamedAttribute), inherit, new NamedAttribute[0]);
 }
Esempio n. 2
0
        private void TestGetCustomAttributesExtended(string propertyName, bool inherit)
        {
            var propertyAttributeClass = new PropertyAttributeTest();

            this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(InjectAttribute), inherit, new[] { new InjectAttribute(), new NotInheritedInjectAttribute() });
            this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), inherit, new[] { new NotInheritedInjectAttribute() });
            this.TestGetCustomAttributesExtended(propertyAttributeClass, propertyName, typeof(NamedAttribute), inherit, new NamedAttribute[0]);
        }
Esempio n. 3
0
        private void TestHasAttribute(string propertyName)
        {
            var propertyAttributeClass = new PropertyAttributeTest();

            this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(InjectAttribute), true);
            this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), true);
            this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NamedAttribute), false);
        }
 private void TestHasAttribute(string propertyName)
 {
     var propertyAttributeClass = new PropertyAttributeTest();
     this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(InjectAttribute), true);
     this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NotInheritedInjectAttribute), true);
     this.TestHasAttribute(propertyAttributeClass, propertyName, typeof(NamedAttribute), false);
 }