Is it possible to run unit tests when loading dependent assemblies at run-time?

Assuming Loader. LoadAssemblies is the method that signs up for the AssemblyResolve event, you are receiving this exception because the runtime cannot find ClassLibrary1. Dll via probing.

It is important to understand why probing is coming into play here. Probing is invoked because before you can load the any assemblies via Loader. LoadAssemblies the method must be Jitted.

To be properly jitted, the runtime must load the assemblies for types referenced at compile-time. Since you have turned 'copy local' to false the file ClassLibrary1. Dll is not copied and not in the probing path.

Hence, your FileNotFoundException .

You have to make that the DLL'Class1Project' is available for the loader, so, if you don't want to set the project to always copy it, you could use the DeploymenItem attribute to copy it for the test, so that the load can find it.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions