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