As my colleague Stefan said, we have very hard technical obstacles to mock Type members.
I can think of two possible solutions. The easier one is to refactor your code base to abstract away usage of Reflection API. Test this code with integration tests and the other parts of the system with unit tests and mocked objects.
A more involved solution would be to introduce already available frameworks to mange extensions. One of the most used ones, which we use internally in Telerik with great success, is MEF
. It works for .net 3.5 and up and is well tested and supported by Microsoft.
I hope this information helps you to resolve your issue.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.