Using Rhino v3.5.0.2 I have the following code (my first attempt at
using Rhino):
<TestMethod()> _
Public Sub TestSimpleAuthenticatePass()
Dim mocks As New MockRepository()
Dim mockProv = mocks.DynamicMock(Of
System.Web.Security.MembershipProvider)()
Using mocks.Record()
Expect.Call(mockProv.ValidateUser("john",
"password")).Return(True)
End Using
End Sub
Expect.Call gives a compile-time error of "overload resolution failed
because no accessible 'Expect' accepts this number of arguments".
Looking at C# examples, this seems like the correct syntax. Is the
VB.NET syntax different?