public void Test() { var attributeList = AttributeList.GetCustomAttributeList(typeof(TestClass)); Assert.IsTrue(attributeList.IsAttributeSet <TestAttrAttribute>()); Assert.IsFalse(attributeList.IsAttributeSet <TestClassAttribute>()); Assert.IsInstanceOfType(attributeList.FindAttribute <TestAttrAttribute>(), typeof(TestAttrAttribute)); }