예제 #1
0
        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);
        }
예제 #2
0
 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]);
 }
예제 #3
0
        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]);
        }
 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);
 }