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.