The following thread talks about matching an argument
of List<T> and ends with a user providing his own
custom matcher:
https://sourceforge.net/mailarchive/forum.php?thread_id=9786445&forum_id=45719
Can we provide these kinds of matchers as part of the
NMock2 release rather than have everyone implement
their own?
Logged In: YES
user_id=24715
Nat says:
I agree that this should be part of the standard set of
constraints.
Perhaps there should be constraints for dictionaries too. I
merged a patch into jMock recently that contributed useful
constraints for collections and dictionaries, so you can
specify that a parameter is an element of a list, or is a
key of a dictionary, etc. Very useful for keeping tests
flexible.