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 [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.