> that not only you will NOT be able to mock, but even use such a type
> declaration at all.
>
> Have you verified that you can create an actual instance of a class
> implementing such an interface and it actually loads in the runtime?
> According to the connect bug, that's unlikely...
>
>
>
> On Wed, Jan 28, 2009 at 8:34 AM, Michiel <
michiel...@gmail.com> wrote:
>
> > I ran into the System.TypeLoadException when trying to run a test
> > where I mocked an IRepository<T> which has a method with the following
> > signature:
>
> > IQueryable<U> Find<U>() where U : T;
>
> > The error message is:
>
> > "Method 'Find' on type
> > 'IRepository`1Proxy4ddcacc4e8f34278bbf4ebe7f1335b97' from assembly
> > 'DynamicProxyGenAssembly2, Version=0.0.0.0, Culture=neutral,
> > PublicKeyToken=null' tried to implicitly implement an interface method
> > with weaker type parameter constraints."
>
> > I understand that this is a bug that will be resolved in the future
> > (for more information see:
>