Hi,
I need to test that my class makes call backs and and that the correct
number of calls are made and with the correct parameters.
Additionally though, I need to check that the calls occurred in the
*correct* order.
I have managed to do this using When..Do and building up a list of the
calls made and checking that matches my expectations, but I can't help
feeling that I am replicating information NSubstitute is already
recording and probably exposes this somehow.
See example in
https://gist.github.com/781836 (Ignore the Hamcrest
style assertions).
Thanks in advance and keep up the good work on NSubstitute.
Matthew