All unit tests throwing BadImageFormatException with Moq?
问题 I'm currently in the process of increasing code coverage on our software products and have ran into an issue; all of my unit tests (when compiled using 'Any CPU') are failing due to throwing a 'BadImageFormatException'. This exception can be circumvented by building the solution using 'x86' instead of 'Any CPU', however the requirements are such that we need to be able to run them using Any CPU/x64 bit. All unit tests involving Moq follow pretty much the same format: [TestMethod] public void