C#或者VB中如何判断dll中获得的类和方法属于单元测试的类TestClass和方法TestMethod

C#或者VB中怎么判断dll中获得的类和方法属于单元测试的类TestClass和方法TestMethod?
关键是在于怎么识别从DLL反射得到的雷和方法是属于单元测试的测试类和测试方法,有什么特性吗?VB中单元测试类的标签是<TestClass()> 
------解决方案--------------------
http://msdn.microsoft.com/zh-cn/library/system.type.getcustomattributes(v=vs.100).aspx

http://msdn.microsoft.com/zh-cn/library/system.reflection.memberinfo.getcustomattributes(v=vs.100).aspx