【发布时间】:2023-03-03 21:25:02
【问题描述】:
我在What is the purpose of Verifiable() in Moq? 阅读了这个问题,并在脑海中浮现了这个问题:
VerifyAll() 在 Moq 中的用途是什么?
【问题讨论】:
-
请记住,您不应该在 Arrange 中堆叠断言。你应该断言。因此,不要使用 Verify 或 VerifyAll - 这是错误的思考方式。 stackoverflow.com/questions/980554/…
标签: unit-testing moq