With some more digging, I found the answer:
Created a Interface for the SecurityLog class.
Changed the StrictMock to:
ISecurityLog log = mocks.StrictMock<ISecurityLog>();
Added LastCall with Constraints to the mocks.Record:
using (mocks.Record())
{
log.LogEntry(ref userName, ref userIp);
LastCall.Constraints(new Same(userName), new Same
(userIp)).Return(true);
}
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
-~----------~----~----~----~------~----~------~--~---