Your repository is probably still in "record" mode. Before doing your actual test logic, issue a:
repository.ReplayAll(); --- Patrick Steele http://weblogs.asp.net/psteele On Fri, Jul 9, 2010 at 1:19 PM, Thiago de Arruda <[email protected]> wrote: > Hi, > > I'm trying like this : > > TransportBindingElement mockedTransportBindingElement = > repository.DynamicMock<TransportBindingElement> (); > SetupResult.For(mockedTransportBindingElement.Scheme).Return("http"); > string scheme = mockedTransportBindingElement.Scheme; 'scheme' > continues being null; > > What i'm doing wrong? Scheme is an abstract property so it should > work ( I followed this : > http://www.ayende.com/wiki/Rhino+Mocks+Setup+Result.ashx) > > Thanks. > > -- > 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. > > -- 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.
