更新时间:2023-02-14 17:19:02
请尝试用标记方法:
[ExpectedException(typeof(NotImplementedException))]
我怎么可以断言,一个C#异步方法抛出一个单元测试的异常?