I just run into a problem, maybe there is help around.
I create a Test-Project and try to create tests for my parts. I create the container, the batch and do composition in the
Sub MyTestInitialize() function, works fine. Than some test starts and I get a LoaderLock-Exception. Whats wrong.
Maybe I have to explain, what the part is for. I have to control some bulky hardware. I decide to write a simulation for that, so I am able to work everywhere without it. Before MEF I manually resolve the imports. I create a
lot of interfaces to do that.
Now a new version should be made and some new hardware is available also. I decide to solve this using MEF. I want to swap the hardware layer between my simulation and the two different hardware versions just by 'installing'
the correct driver. Rest is up to MEF.
My simulation is little different from the hardware drivers, because it opens a WinForm which allows me to check values and set some test conditions. This scenario cames up before Unit Tests are available ....
So maybe this WinForm is an issue, or the MEF in combination with Unit tests.
Thanks for helping