On Dec 14, 1:23 pm, Chris Missal <
chris.mis...@gmail.com> wrote:
> Not quite sure here, but I think you might need to specify the type of
> type...
>
> return MockRepository.GenerateMock<TType>();
> }
>
>
>
>
>
> On Mon, Dec 14, 2009 at 12:57 PM, toranb <
tor...@gmail.com> wrote:
> > I'm trying to upgrade the below from 3.5 RC1 and for some reason I get
> > this error
>
> > "The type TType must be a reference type in order to use it ..."
>
> > private MockRepository mockr;
> > protected MockRepository Mockr
> > {
> > get { return mockr; }
> > }
>
> > public virtual TType DynamicMock<TType>()
> > {
> > return mockr.DynamicMock<TType>();
> > }
>
> > What can I do to refactor this return statement such that I still get
> > the mock repository creating the dynamic mock like it would a stub in
> > 3.6?
>
> > Also what happened to the behavior in 3.6 that changed the way this
> > static method works?
>
> > -Toran
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Rhino.Mocks" group.
> > To post to this group, send email to
rhino...@googlegroups.com.
> > To unsubscribe from this group, send email to