【发布时间】:2016-11-07 02:46:55
【问题描述】:
我正在尝试使用异步方法模拟测试,但我不知道如何设置最小起订量测试以允许它。
noSQLProvider.Setup(x => x.CreateDocumentAsync(It.IsIn<Uri>(), It.IsAny<object>())).Returns();
错误告诉我:
用法:ResourceResponse x = await CreatDocumentAsync(...);
表达式树可能不包含使用 可选参数。
【问题讨论】:
标签: c# unit-testing asynchronous moq