MbUnit 2.3 Released!

My favorite unit testing framework just released a new version. Andrew Stopford has the announcement here and you can download the release from the MbUnit site.

I met Andrew at Mix 06 early this year and he’s a class act and great project lead. I’ve been following MbUnit’s progress on and off and am really happy with the team’s responsiveness to my submitted issues.

My one tiny contribution to the project was to purchase the mbunit.com domain for them. Perhaps a little bribe to get my feature requests looked at promptly. ;)

If you are wondering why I prefe MbUnit of NUnit, check out these posts:

What others have said

Requesting Gravatar... Andy Stopford Dec 07, 2006 1:31 AM
# re: MbUnit 2.3 Released!
<blush/> ;-)
Requesting Gravatar... Christopher Steen Dec 07, 2006 9:59 PM
# Link Listing - December 7, 2006
Cool SharePoint Tool: SharePoint Inspector [Via: jantie ] Howto: Use a Vista DVD to duplicate any Windows...
Requesting Gravatar... Howard Dec 08, 2006 2:48 PM
# re: MbUnit 2.3 Released!
Phil,

I'm still waiting to find out why MbUnit is worth the trouble compared to NUnit.

True, it has a lot of nifty features that I didn't even know I needed (many of them still stubbed out, and few of them documented coherently). But every time I want to recompile and run a test, I need to click about seven times (MbUnit doesn't remember what tests I just ran).

True, it does let me write this --


[RowTest]
[Row("10/2/2006", "10/2/2006")]
[Row("10/4/2006", "10/2/2006")]
[Row("10/8/2006", "10/2/2006")]
public void TestMyFunction (string input, string reference)
{
DateTime dtOut = MyFunction(DateTime.Parse(input)); Assert.IsTrue(dtOut.CompareTo(DateTime.Parse(reference)) == 0);
}


Instead of this –

[Test]
public void TestMyFunction()
{
TestMyFunctionHelper("10/2/2006", "10/2/2006");
TestMyFunctionHelper("10/4/2006", "10/2/2006");
TestMyFunctionHelper("10/8/2006", "10/2/2006");
}
private void TestMyFunctionHelper(string input, string reference)
{
DateTime dtOut = MyFunction(DateTime.Parse(input));
Assert.IsTrue(dtOut.CompareTo(DateTime.Parse(reference)) == 0);
}



Which does save one line of code.

Of course, as they say, “Never show a partly finished job to a fool.” Maybe I’ll stick with it for a while.
Requesting Gravatar... Haacked Dec 08, 2006 2:52 PM
# re: MbUnit 2.3 Released!
Well that didn't save you a line of code. You hade to write TestFunctionHelper. Also, what if you needed the SetUp and TearDown function to run between each call to TestMyFunctionHelper?

Now imagine your next test that takes in three parameters or four? You'll have to write more test function helpers. You could certainly write one that takes in a delegate, but why when MbUnit offers all that to you for free?

Also, you should install TestDriven.NET and test right from your IDE. I almost never use the MbUnit GUI.

What do you have to say?

(will show your gravatar)
Please add 5 and 5 and type the answer here: