在 Visual Studio 2015 中调试 Typemock 测试用例抛出 TypeMockException

Debugging Typemock test case in Visual Studio 2015 throws TypeMockException

在 Visual Studio 2015 年,当我尝试 调试 使用 Typemock 的测试时(我使用 Visual Studio Test Explorer,而不是 Typemock 的 SmartRunner) ,在第一次调用 Typemock 方法时出现以下异常:

TypeMock.TypeMockException occurred HResult=-2146233088
Message=
*** Typemock Isolator is currently disabled. Enable using the following:

  • Within Visual Studio:
    • Use Typemock Smart Runner
    • For other runners, Choose Typemock Menu and click "Integrate with Other Runners"
      • To run Typemock Isolator as part of an automated process you can:
      • run tests via TMockRunner.exe command line tool
      • use 'TypeMockStart' tasks for MSBuild or NAnt

我已按照说明进行操作并验证:

此外,

问题:是什么导致了这个问题,我该如何解决?

IntelliTrace 功能不适用于 Typemock。 在 Visual Studio 选项(选项->IntelliTrace->常规->启用 IntelliTrace)中禁用 IntelliTrace 可解决此问题。

参见:

免责声明:我在 Typemock 工作

此问题已在 Isolator 8.3 中修复,并将适用于所有后续版本。 Isolator 8.3 于 2.21.2016 发布,可在 www.typemock.com.

下载