I'm going through Roy Osherove's "The Art of Unit Testing" and the
following is throwing an exception using Rhino Mocks 3.6. If anyone
has any idea why this works in 3.5 but not 3.6, I would appreciate the
help. Thanks!
MockRepository mocks = new MockRepository();
IWebService mockservice = mocks.DynamicMock<IWebService>
();
using (mocks.Record())
{
mockservice.LogError(new TraceMessage("", 0, ""));
LastCall.Constraints(
Property.Value("Message", "expected message") &&
Property.Value("Severity", 100) &&
Property.Value("Source", "Some Source"));
}
mockservice.LogError(new TraceMessage("expected message",
100, "Some Source"));
mocks.VerifyAll();
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---