Hi,
we use Visual Studio 2010 to develop a SharePoint 2010 project. This implies that we have to run all our tests on the x64 platform, because SharePoint does not support x86. We chose MSTest for our tests. MSTest can execute tests in x64, but only for assemblies compiled as AnyCPU. This is due to the architecture of MSTest, where the MSTest.exe itself is a x86 process which spawns x64 test runners. Therefore it is unable to load pure x64 assemblies. On the other hand, NCrunch seems to run assemblies compiled for AnyCPU in x86 mode, even if the MSTest testsettings say that the x64 runner should be used on x64 systems.
To use both MSTest and NCrunch, we had to add a new project configuration, in which we override the platform settings. Now we have 'Debug|AnyCPU' compiled for x64, and 'DebugMSTest|AnyCPU' compiled for AnyCPU. Using the platform switch ('Debug|AnyCPU' and 'Debug|x64') didn't work out, NCrunch doesn't seem to respect this.
This workaround feels somewhat strange. I would appreciate it if NCrunch could run AnyCPU assemblies on the x64 platform, mirroring the MSTest behavior.
Best regards
Malte