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'm sure this is painfully simple, but how do I mock a method with a void return type an unlimited number of times? I want to intercept the method call each time and do nothing. I've tried AlwaysReturn() and ExpectAndReturn() to no avail.

thanks,

Scott
asked by sclemmons (600 points)

1 Answer

0 votes
Use: ExpectAlways, ExpectCall or even ExpectUnmockedCall
For more information see the Overview Chapter of the TypeMock.NET User Guide in the Working with TypeMock.NET chapter
answered by scott (32k points)
...