How to prevent expected exceptions from breaking the debug test run?

后端 未结 3 1745
说谎
说谎 2020-12-19 01:03

When running MSTEST unit tests in debug mode, the execution stops in every expected exception that is thrown. My test looks like this

[TestMethod()]
[Expecte         


        
3条回答
  •  暖寄归人
    2020-12-19 01:26

    @dcp's suggestion looks like it would work for MSTEST, but you might want to consider getting TestDriven.Net. I use it as a test runner almost exclusively and don't have this problem using the right-click "Run Tests in Debug" mode. In addition I find it to be more convenient than the built-in test runner in almost all circumstances.

提交回复
热议问题