Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在测试Simple.Mocking,想知道如何IEnumerable<MyModel>在我的模拟中期待任何东西?
Simple.Mocking
IEnumerable<MyModel>
在我的界面中:
void Remove(IEnumerable<MyModel> enumerable);
在我的测试中:
Expect.MethodCall(() => service.Remove(???));
我应该写什么而不是???期望除 null 之外的任何参数?
这似乎有效!
Any<IEnumerable<MyModel>>.Value.AsInterface