共 1 篇文章 |
|
As an example, we set up two mock objects for the interface IMyInterface, and we expect the calls mock1.a() and mock2.a() ordered, then an open number of calls to mock1.c() and mock2.c(), and finally mock2.b() and mock1.b(), in this order:举例说明,创建两个IMyInterface接口的Mock对象,预期调用顺序为mock1.a()然后mock2.a... 阅400 转3 评0 公众公开 08-12-21 12:24 |