chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
I am getting unexpected results with GetCallCount. From the documentation I was assuming that GetCallCount would apply to a single mock instance but my results are showing that it applies to all instances of a mock. I have two tests that create the same type of mock. If I call GetCallCount in the second test, the call count will include the calls made in the first test.

Is this by design?

I have a sample that reproduces the problem if you need it.
asked by jnapier (9.6k points)

1 Answer

0 votes
Currently this is by design, although I do see the logic in the scenario that you are describing.
I will see if we can add this as a feature.
answered by scott (32k points)