First of all, thank you for a great mock framework.
I think the best way to descripe my problem is with an example:
[TestMethod]
public void TestMethodTest()
{
var mocks = new MockRepository();
var mockedInterface =
mocks.CreateMock<TestInterface<List<string>>>();
}
public interface TestInterface<T> where T :
IEnumerable<string>
{
string TestMethod<T2>(T2 obj) where T2 : T,
ICollection<string>;
}
Then the following error is thrown every time:
System.TypeLoadException: Method 'TestMethod' on type
'TestInterface`1Proxyce0a676c66b44b9f8632d97eb36a32c8' from assembly
'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=a621a9e7e5c32e69' tried to implicitly implement an
interface method with weaker type parameter constraints..
Is there any way to get around with this?
Thank you,
Mads