2
new Expectations() {{
mock0.f();
mock1.f();
mock0.f();
mock1.f();
mock0.f();
mock1.f();
}};
有没有一种方法,我可以用“次=”规范?喜欢的东西:
new Expectations() {{
{
mock0.f();
mock1.f();
}
times = 3;
}};
I /能/在我的预期的循环,但我真的很讨厌圈的复杂性比一个在我的单元测试更大。
请注意,我想继续使用严格的期望值。