You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rhino...@googlegroups.com
Rhino.Mocks allows multiple stubs to be set up on the same method (so
you can test what would happen if the first call returns true and the
second call returns false).
If you want to "reset" and clear out all previous stubs, you could:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rhino...@googlegroups.com
For simplicity I like to keep the AAA syntax side of things... what you mention looks like the Expect/Replay/Record type stuff I'd like to avoid. Also this blog post says that "It’s important to note that if you do not specify the number of times to repeat for the first stub, then the second stub will simply overwrite the first one", which is contrary to my experience so I was wondering if this was *intended* behavior, a bug, or missing functionality.
I found a more AAA way around this: using .Repeat.Any() for a subsequent call will override a previously stubbed return value where no repeat was specified. But you can only use Repeat.Any() once.