c# - External Alias vs. Reflection vs. System.Addin For Multi-DLL Testing? -


Assume that I have two DLLs, one is development DLL, the second is a production DLL. I want to write software which compares the results of different functions from each DLL.

Currently, I am using external aliases, which is a very good solution, but it needs a lot of code duplication (this is the type of problem I am facing :) < / P>

So now, I'm considering reflection or using the system. Before knowing that it would be better for Adin (using DLL as plugins) for my software, I was wondering if you have any experience with this type of problem, and what solution you decided to use is that which I I'm developing the system, its a very important part, so it's probably important to work the best way.

Edit: The row below, I think there should be a "best practice" method of testing the results of two DLLs. It should be something that people do quite a lot (I would have thought).

Have you considered using unity or any other dependency injection framework? This is a case of primary use for such a structure. Unity () can be found on and a Microsoft pattern and practices project.

Comments