ShimNotSupportedException in MS VisualStudio 2012

前端 未结 3 1727
别那么骄傲
别那么骄傲 2020-12-19 10:55

I\'m just trying to get familiar with the new Fakes Isolation Framework in Visual Studio 2012 RC but I\'m consequently facing issues with ShimNotSupportedException

3条回答
  •  旧时难觅i
    2020-12-19 11:37

    I had the same exact problem. Try to remove all testsettings files (both from disk and solution), and make sure your solution does not reference any testsettings files.

    Also make sure you're using the visual studio testrunner (and not resharper etc. which is instrumenting the code).

    I've written two blogposts about these issues which may be helpful:

    Visual Studio 2012 Fakes – ShimNotSupportedException when debugging tests

    Unit testing – Visual Studio 2012 Fakes in Team City

提交回复
热议问题