A while back I wrote a library that did some AppDomain creation. I wrote tests for it and set them up to work with NCrunch by following the guide here:
troubleshooting_tests-that-build-their-own-appdomainsIt is now many months later and I went back to the project to make a couple changes but my tests are not running anymore. The biggest difference I can think of is that I upgraded the version of NCrunch I am using. I am pulling in the NCrunch reference via
NuGet, so my first step towards a solution was to update that. I did, though it only brought it up to 2.8 (I'm on NCrunch 2.10), but the tests still fail.
The symptom is a stack overflow when attempting to resolve NCrunch.Framework. I don't remember exactly how this worked before, but I vaguely remember that somehow the application domains were pre-loaded with NCrunch.Framework so that they never failed to resolve them (or something like that). Looking at the modules list in a debugger while the stack is overflowing, I can see that NCrunch.Framework is *not* loaded into the application domain. I do see nCrunch.TestRuntime.dll loaded, but that doesn't help me.
Was there a recent (within the last n months) change to NCrunch that would effect this behavior? Is there a work around?