Can I debug while running a VS Unit Test?

前端 未结 4 2001
说谎
说谎 2021-02-01 03:30

I want to unit test a user component which use custom events. when doing this without using VS Unit test Framework debug.assert succeed, when doing the same thing with VS Unit T

4条回答
  •  深忆病人
    2021-02-01 04:02

    The answer by P. Campbell is not exactly right. If you start debugging a project (such as a WCF services site), it is impossible to start any unit tests, debug mode or not. The options to do so are simply grayed out in Visual Studio 2012.

    This means you simply cannot debug out-of-process code from a unit test. You can only debug code that was directly called in process by the unit test.

    This is a major problem in VS2012 that they need to fix now.

提交回复
热议问题