Ejemplo n.º 1
0
        public void IsAttributeDefined_memberInfo_inherit_false()
        {
            Type t      = typeof(MyDerivedTestClass);
            bool actual = MemberInfoExtensions.IsAttributeDefined <MyTestAttribute>(t, false);

            Assert.IsFalse(actual);
        }
Ejemplo n.º 2
0
        public void IsAttributeDefined_memberInfo_using_base_attribute()
        {
            Type t      = typeof(MyBaseTestClass);
            bool actual = MemberInfoExtensions.IsAttributeDefined <Attribute>(t);

            Assert.IsTrue(actual);
        }
Ejemplo n.º 3
0
 public void IsAttributeDefined_null_memberInfo_true()
 {
     MemberInfoExtensions.IsAttributeDefined <MyTestAttribute>(null, true);
 }