任何线程的未处理异常都会破坏整个测试的运行,而前面提到的集成测试却需要使用多线程。
An unhandled exception on any thread will crash the entire test run, and as mentioned before, integration tests require multi-threading.
如果测试装置运行后没弹出任何未处理异常,并且所有断言都通过而没有问题,测试结果窗口显示绿色信号。
If the test fixture runs without throwing any unhandled exceptions, and all of the Assert statements pass without problems, the test Results window shows a green light.
临界区是指在此区域内异步或未处理异常的影响可能不仅局域于当前任务,而且还可能造成整个AppDomain不稳定。
A critical region is one where the effects of an asynchronous or unhandled exception might not be limited to the current task, but rather might destabilize the entire AppDomain.
应用推荐