【发布时间】:2020-11-11 19:45:20
【问题描述】:
给定一个异步方法,NSubstitute 如何检查未收到调用?
使用 NSubstitute,我们可以使用以下方法检查是否按顺序接收了一个(或多个)异步方法:
Received.InOrder(async () =>
{
await client.SendAsync(Arg.Any<string>())
});
DidNotReceive 的等价物是什么?
【问题讨论】:
标签: .net-core nsubstitute