How to handle exceptions raised in other threads when unit testing?

前端 未结 6 637
粉色の甜心
粉色の甜心 2021-01-17 10:43

When testing with Visual Studio Team Test unhandled exceptions in tests are caught and reported in the results. So I was kind of surprised to see the test hosting process (V

6条回答
  •  北海茫月
    2021-01-17 11:13

    You could try setting AppDomain.CurrentDomain.UnhandledException and see if that works? I don't know how that interacts with the VS test harness thought

提交回复
热议问题