visual-studio-2008mstestmoles

VS2008 Microsoft.Moles.VsHost stopped working


I had a solution with the unit tests for MSTest with Moles 0.94.51023.0 working fine under VS2010 IDE. Had to downgrade the solution to VS2008 SP1. All tests without moles work fine. Every test with moles throws "Microsoft.Moles.VSHost has stopped working" error:

enter image description here


Solution

  • I had found the similar problem here.

    Apparently Microsoft Security Update for Microsoft Windows (KB2742599) prevents MSTest in VS2008 from working with Moles. As soon as I removed this update, the tests with Moles start working.