Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
Rhino Mocks 3.5 RTM

Yesterday Oren announced the release of RhinoMocks 3.5.  While the RC version has been out for a bit the RTM release fixes a few bugs.  You can read all about the enhancements and features in Oren's post

The feature that excites me the most about the new RhinoMocks release is the AAA Syntax (Arrange-Act-Assert).  One thing I've always struggled with when explaining mocking to people is the record replay model.  The new syntax seems to be more natural.  I have no empirical evidence to back that last statement up, only anecdotal evidence from observing fellow employees interact with the new syntax.

A close second in terms of changes is the deprecations of CreateMock().  In all the features, patches, improvements, and bug fixes this is the only item Oren bolded, which shows it's importance:

CreateMock() is deprecated and marked with the [Obsolete] attribute. Use StrictMock() instead.

This one is great for beginners who instinctively pick up the binaries and see the method CreateMock() and end up later with brittle tests.  Brad Abrams talks about the "Pit of Success" and quotes Rico Mariani:

The Pit of Success: in stark contrast to a summit, a peak, or a journey across a desert to find victory through many trials and surprises, we want our customers to simply fall into winning practices by using our platform and frameworks. To the extent that we make it easy to get into trouble we fail.

In earlier versions of Rhino it was too easy to use CreateMock() when DynamicMock() is what you wanted.  New mockers were often using the wrong method (I was one of these CreateMock() abusers/users).  The warning when using CreateMock, and the other enhancements/changes, make falling into the pit of success (with mocking) a much more likely reality.

You can download the bits from Oren's download area.  When you download, I would encourage you to make a donation to Oren's open source efforts.


Posted 10-05-2008 8:19 PM by Tim Barcz
Filed under:

[Advertisement]

Comments

Twilight Bedding wrote re: Rhino Mocks 3.5 RTM
on 06-29-2010 7:30 PM

Thanks for the release info.

Bryan

Travel Jakarta Bandung wrote re: Rhino Mocks 3.5 RTM
on 08-09-2010 1:36 PM

There is obviously a lot to know about this. I think you made some good points in Features also.

buy generic stendra wrote re: Rhino Mocks 3.5 RTM
on 01-26-2013 8:09 PM

yMmdy4 I appreciate you sharing this post.Really thank you! Keep writing.

buy viagra online wrote re: Rhino Mocks 3.5 RTM
on 02-03-2013 4:12 PM

8brUFS I really like and appreciate your article.Thanks Again. Fantastic.

buy imitrex generic wrote re: Rhino Mocks 3.5 RTM
on 02-15-2013 9:09 AM

LtRTXS I think this is a real great article. Much obliged.

buy cialis discount wrote re: Rhino Mocks 3.5 RTM
on 02-24-2013 2:19 AM

iGtz4k I am so grateful for your article.Much thanks again.

buy clomid no prescription wrote re: Rhino Mocks 3.5 RTM
on 03-01-2013 4:55 AM

mB3PrP Muchos Gracias for your post.Really thank you! Cool.

buy viagra online wrote re: Rhino Mocks 3.5 RTM
on 03-02-2013 1:50 PM

I4qm9w Very good article post.Much thanks again. Really Cool.

buy social bookmarks wrote re: Rhino Mocks 3.5 RTM
on 03-22-2013 2:08 PM

82GJcV Looking forward to reading more. Great post.Thanks Again. Cool.

awesome linkbuilding site wrote re: Rhino Mocks 3.5 RTM
on 10-01-2013 9:42 AM

U8e2lh Im thankful for the article.Thanks Again. Much obliged.

link building team wrote re: Rhino Mocks 3.5 RTM
on 10-15-2013 6:30 PM

J8I4I0 A big thank you for your article post. Cool.

link building wrote re: Rhino Mocks 3.5 RTM
on 10-24-2013 6:06 PM

rInvaz I really like and appreciate your blog post.Really thank you! Really Cool.

Add a Comment

(required)  
(optional)
(required)  
Remember Me?

About The CodeBetter.Com Blog Network
CodeBetter.Com FAQ

Our Mission

Advertisers should contact Brendan

Subscribe
Google Reader or Homepage

del.icio.us CodeBetter.com Latest Items
Add to My Yahoo!
Subscribe with Bloglines
Subscribe in NewsGator Online
Subscribe with myFeedster
Add to My AOL
Furl CodeBetter.com Latest Items
Subscribe in Rojo

Member Projects
DimeCasts.Net - Derik Whittaker

Friends of Devlicio.us
Red-Gate Tools For SQL and .NET

NDepend

SlickEdit
 
SmartInspect .NET Logging
NGEDIT: ViEmu and Codekana
LiteAccounting.Com
DevExpress
Fixx
NHibernate Profiler
Unfuddle
Balsamiq Mockups
Scrumy
JetBrains - ReSharper
Umbraco
NServiceBus
RavenDb
Web Sequence Diagrams
Ducksboard<-- NEW Friend!

 



Site Copyright © 2007 CodeBetter.Com
Content Copyright Individual Bloggers

 

Community Server (Commercial Edition)