nsubstitute/NSubstitute — pull request #97 by i-e-b (2013-01-10 14:45:05+00:00)
Title: Received()... behavior for generic methods 

Hi.

This patch improves `sub.Received().Call(...)` where `Call` has generic parameters.
Passing test is in NSubstitute.Acceptance.Specs/MatchingDerivedTypesForGenerics.cs

Quick example:
```
interface IBaz
{
void Call(T param) where T:IBazParam;
}
[Test] public void MatchesDerivedTypesForGenericTypes()
{
var mock = Substitute.For();
mock.Call(new BazParam());
mock.Call(new BazParam2());
mock.Received(2).Call(Arg.Any());
}
```
Was failing, now passing.

This patch is based on a similar one for Moq by @SureMaker ( https://github.com/Suremaker/moq4/commit/1544e61be362f03e4aa0fa55bb3a47a05a6c04fe )

Many thanks :-)