What is MyMock1? What's the signature of MyMethod<T>? --- Patrick Steele http://weblogs.asp.net/psteele
On Thu, Apr 28, 2011 at 11:56 AM, Giulio Petrucci <giulio.petru...@gmail.com> wrote: > Hello there, > > I have this (strange) situation: > > MockRepository repo = ...; > Foo foo = ...; > var list = repo.StrictMock<List<Foo>>(); > > using (repo.Ordered()) > { > myMock1.Expect(o => o.MyMethod<Foo>()).Repeat.Once().Return(foo); > list.Expect(l => l.Contains(foo)).Repeat.Once().Return(true); //error > } > > I have this error (in the above marked line): > > Type 'System.Boolean' doesn't match the return type 'Foo' for method > 'MyMock1.MyMethod<Foo>(missing parameter);' > > and as I'm quite a newbie I'm just asking: what's going on? > :-) > > thanks, > Giulio > > -- > > -- > You received this message because you are subscribed to the Google Groups > "Rhino.Mocks" group. > To post to this group, send email to rhinomocks@googlegroups.com. > To unsubscribe from this group, send email to > rhinomocks+unsubscr...@googlegroups.com. > 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 rhinomocks@googlegroups.com. To unsubscribe from this group, send email to rhinomocks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rhinomocks?hl=en.