That is what I was afraid of ... I'll need to rework this entire base class from the looks of it then : (
On Dec 14, 1:23 pm, Chris Missal <[email protected]> wrote: > Not quite sure here, but I think you might need to specify the type of > type... > > public virtual TType DynamicMock<TType>()* where TType : class* > { > return MockRepository.GenerateMock<TType>(); > } > > > > > > On Mon, Dec 14, 2009 at 12:57 PM, toranb <[email protected]> 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 [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<rhinomocks%2bunsubscr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/rhinomocks?hl=en. > > -- > Chris Missalhttp://chrismissal.lostechies.com/- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Rhino.Mocks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.
