Hi. Just getting started on RhinoMocks and I'm puzzled why I can code
this in C#:
using (mocks.Record())
{
***** ERROR LINE ***** Expect.Call
(timeController.MyMethod(t)).Return(fakeObj);
}
using (mocks.Playback())
{
TestInt y = timeController.ReturnSame(t);
Assert.AreEqual(fakeObj, y);
}
But if I code the same in VB.Net, I get a compile error on the
Expect.Call line - the message is "Overload resolution failed because
no accessible 'Expect' accepts this number of arguments." This is
really causing me problems, because I don't know of any other code
that will set a return value for a method called on my mock object. So
two questions:
- why am I getting the error in VB.Net? &
- is there any alternative syntax? (Recoding the tests in C# is not an
option - company policy is to code in VB.Net)
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---