c# – FluentAssertions无法识别异步方法/ Func的ShouldNotThrow
我试图检查异步方法抛出具体异常. 为此我使用MSTEST和FluentAssertions 2.0.1. 我已经检查了这个Discussion on Codeplex,并看到它与异步异常方法的工作原理另一个关于FluentAssertions async tests的链接: 经过一段时间尝试使用我的“生产”代码,我已经关闭了Fluentassertions假的aync类,我的结果代码就像这样(把这