This is something that I have resorted to RinoMock to achieve in the past...
... well it turns out you can do it with NMock2 v1.0 as follows:
I've tried to find this before.. and failed.. so I thought I should blog it to make it easier to find in google.
Thanks to ursenzler for commenting on http://www.fluidscape.co.nz/?q=node/82#comment-1692
I may have prematurly posted. I can't find a set of assemblies for NMock2 where this syntax works.
Anyone found one?
You can get a version containing the support for generics from http://sourceforge.net/projects/nmock2/
I suggest that you get the latest version directly from the svn repository because the downloadable release is quite old.
Or send me an email to ursenzler(at)users.sourceforge.net and I'll send you the binaries.
Post a Comment