Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counting number of call method before callback raise #65

Closed
iremezoff opened this issue Dec 10, 2013 · 1 comment
Closed

Counting number of call method before callback raise #65

iremezoff opened this issue Dec 10, 2013 · 1 comment

Comments

@iremezoff
Copy link

Why counting number of call mock method is realized after callback raise?
I perform following code for working imitation:

mock.Verify(m=>m.Execute()).Callback(()=>{Thread.Sleep(1000)}); // work imitations

But number of Execute method calls is changed after imitation have been completed.
Thanks.

ps: sorry, my English is very bad

@stakx
Copy link
Contributor

stakx commented Jun 3, 2017

Hi @iremezoff, it has been a long time since you asked this question. If you are still interested in an answer, please report back briefly. (In that case, it would be good to know a little more about what the exact problem with Moq is here.)

If you do not report back in a few days' time, I will close this issue.

@stakx stakx closed this as completed Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants