You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Fri, Nov 10, 2017 at 3:57 AM, FlashBurnGitHub ***@***.***> wrote:
If I created a mock object I can reset it with the Reset() function, but
this is a complete reset.
What I would like to have is a reset of just the invocation data. So that
I can do the following:
Mock<SomeInterface> mock;When(Method(mock,foo)).AlwaysReturn(1);
SomeInterface & i = mock.get();
for(int x = 0; x < 10; x++)
{
BarClass bar(&i, x);
bar.foo(20);
Verify(Method(mock,foo).Using(20));
Verify(Method(mock,foo)).Once();
Method(mock,foo).reset();
}
Or is something like that already possible?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#118>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACc8glp_5Fg1-lnxvHbtveOTNDgjqdGCks5s1DoMgaJpZM4QZdQA>
.
If I created a mock object I can reset it with the Reset() function, but this is a complete reset.
What I would like to have is a reset of just the invocation data. So that I can do the following:
Or is something like that already possible?
The text was updated successfully, but these errors were encountered: