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
Received Calls doesn't work #284
Comments
Hi @jeusdi, I left a comment on your SO question. Summary: I need more information to work out why this is passing incorrectly, but before we work that out we should sort out the problem of mocking the class you are testing. Is it possible for you to strip the example down to something I can run locally? If you can reproduce the problem in a test that you can post in its entirety I think that will be our best bet of sorting out what is happening. In case it helps in the meantime, you can use the Regards, |
Hi @dtchepak. Thanks for your comments. Currently, I'm using [TestFixture]
So, I'm getting a
As you can see I'm trying to test |
I'm not familiar with
|
I've created this test:
where
Core.Kernel
is:And
Core.IKernel
is:Nevertheless,
this.coreKernel.Received(100).AddUser(...
is not called 100 times, only one. What am I doing wrong?I mean, I'm not trying to make 100 calls to
AddUser
. I'm checkingAddUser
should be called 100 times. So, assertion should fail.The text was updated successfully, but these errors were encountered: