Thursday, March 23, 2006

More on MBUnit

Phil Haack, one smart guy and the “Benevolent Dictator” behind SubText, posted a comment on my “Exploring MBUnit” note from last week.  He kindly pointed out the TypeFixture class, linking to a great blog post he wrote back in October of last year.

That post hits something else which I definitely should have covered in last night’s presentation at the Dayton .NET Developers Group: The RollBack attribute, which lets you roll back database actions in any test you run.

Whoof.  I should NOT have missed that one!  I spent a bit of time talking about Roy Osherove’s COM rollback approach in NUnit’s TestFixture Setup/Teardown.  It would have been a perfect addition to have covered this bit of shiny goodness in MBUnit.

I really think I’m going to be moving future efforts over to MBUnit.  There’s a lot of great stuff in it.  I’ve read some of Charlie Poole’s calm, well-reasoned posts about NUnit being able to do much of what MBUnit does, but the latter seems much clearer and easier than the former.


Anonymous said...

In fact, MUnit's Rollback functionality is the result of cooperation between Peli and myself after I introduced the Roolback attribute.
Just mentioning the source so you'll be able to say how it was created.

Anonymous said...

Ehm, I forgot to sign my name - Roy Osherove...

Haacked said...

I actually took what Roy did and ported his xtUnit RollBack attribute to NUnit as well (

Yes, you probably could get NUnit to do all the things that MbUnit does. But who has the time?

It comes with it prepackaged and it just works!

Subscribe (RSS)

The Leadership Journey