I, for one, do not consider this a detriment. It makes it clear just
by looking at the code that the mocked object, rather than the mock
itself, is what's being referenced.
Brad
Stephen Walther makes some interesting comments in the above article.
Stephen Waltrefers to Martin Fowler's http://martinfowler.com/articles/mocksArentStubs.html
"Mocks Aren't Stubs" article (Last significant update: 2007-01-02).
According to (my novice interpretation of) Martin Fowler's article, it seems that behaviour verification
is highly desirable but Stephen writes that MoQ can perform behaviour verification only in a limited way.
Martin Fowler writes that in some "edge" cases, behaviour verification is "the wise choice".
QUESTION: Stephen's article was posted last June 12th ~~ since MoQ has presumably
evolved since then, is Stephen's comment that the MoQ framework can be
used to perform "limited" behaviour verification still as valid now as it was
when Stephen posted his "TDD : Introduction to MoQ" article last June?
Regards,
Gerry (Lowry)
In my experience, you read error messages much more often than you
>What you get is a direct exception at the callsite
debug tests.