Ejemplo n.º 1
0
        public void GettingAnAttribute_FromAMember_GetsTheAttribute()
        {
            MemberInfo prop = new PropertyFieldInfo <AttributesClass, string>(a => a.RandomAttributeTest).Member;

            DebuggerBrowsableAttribute attribute = prop.GetAttribute <DebuggerBrowsableAttribute>();

            Assert.AreEqual(AttributesClass.RandomAttributeTestBrowsableState, attribute.State);
        }