【发布时间】:2016-12-06 02:31:01
【问题描述】:
首先,我搜索了所有关于此的 SO 帖子,但没有一个对我有帮助。我在下面的文章中得到了关于这个主题的例外情况。
[Test]
public void TestInv()
{
string inReference = "123";
_Service.Setup(q=> q.InvoiceS(inReference ));
_Service.Verify(q => q.InvoiceS(inReference ), Times.AtLeastOnce());
}
【问题讨论】:
-
什么是 SUT?请提供minimal reproducible example
标签: c# unit-testing nunit integration-testing moq