Why doesn't Visual Studio break on exceptions when debugging unit tests?

后端 未结 8 721
深忆病人
深忆病人 2020-12-29 02:53

When I attempt to debug a unit test that fails because of an unhandled exception in my code, I expect Visual Studio to break on the unhandled exception so I can inspect the

8条回答
  •  春和景丽
    2020-12-29 03:33

    The unit testing framework handles the exception so visual studio thinks that the exception is handled.

提交回复
热议问题