Moq feature I am wondering if it is doable in Rhino Mocks too

0 views
Skip to first unread message

Nikola Malovic

unread,
Apr 17, 2009, 5:59:26 PM4/17/09
to Rhino.Mocks
Hi,

is Rhino Mock having anything similar to Moq "children auto default
mocking" (example can be seen on
http://stackoverflow.com/questions/638908/mocking-the-cal-eventaggregator-with-moq)

Thanks,
Nikola

Tim Barcz

unread,
Apr 17, 2009, 7:12:57 PM4/17/09
to Rhino...@googlegroups.com
Check out:

http://ayende.com/Wiki/RecursiveMocksGuidance.ashx

I've never done it as it's considered by some (me included) to be a bit of a smell.

I've chosen not to post it but I was going to blog about how Law of Demeter violations can be seen somewhat easily in test code that leverage mocking, you have to set up a ton of extra "stuff".  People hide that by auto-mocking rather than taking care of the issue.

Tim
Reply all
Reply to author
Forward
0 new messages