Documentation correction - CallBase

8 views
Skip to first unread message

TrueWill

unread,
Dec 5, 2008, 11:12:20 AM12/5/08
to Moq Discussions
From Moq.chm:

"IMock.CallBase Property

Whether the base member virtual implementation will be called for
mocked classes if no expectation is met. Defaults to true."

It appears that this actually defaults to false.

Daniel Cazzulino

unread,
Dec 5, 2008, 2:05:06 PM12/5/08
to moq...@googlegroups.com
indeed.

what do you think should be the default?
if it were true, mocks would automatically behave as the equal of rhino mocks "partial mocks", instead of having to explicitly turn it off.

on the other hand, for MVC for example, unless you do NOT call base methods, you get a bunch of exceptions from the httpcontextbase where it depends on the actual httpcontext...
Reply all
Reply to author
Forward
0 new messages