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 have a method that will called multiple times with different arguments.

I want to verfiy the method called once with Argument A ONLY


But I found that WasNotCalled failed to verfiy this as the method was called with Argument B somewhere else in the code.

GetTimesCalled also doesn't work in this case.

I know that there's an alternatives using "DoInstead( ... Count ) "

But is that the only soluation ? it's quite inconvenient
asked by cscmh99 (6.1k points)

1 Answer

0 votes
Currently It's the only way that I know of to test this.

We have however added this to our backlog so we'll add this functionality in future releases.
answered by alex (17k points)