There is no equivalent for this in NSubstitute. It is possible to implement something similar using the ReceivedCalls()
extension method, which will return a list of all calls received. It's a bit fiddly, but possible to query this to ensure no additional calls were received.
If you don't mind checking internal details, you can check Received.InOrder
for some other implementation ideas.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…