Maybe I've been living under a rock, but I just found out that the latest versions of NUnit support [RowTest]! Over the weekend, I was about to replace NUnit with mbUnit because I need [RowTest], but thankfully, after a bit of surfing, I found this post by David Hayden (dated December 2007). David's post described an add-in for NUnit that has since been rolled into NUnit proper.
[RowTest]
[Row("foo", false, true)]
[Row("", false, false)]
[Row(null, false, false)]
[Row("___-__-____", false, true)]
[Row("___-__-____", true, false)]
public void testRequiredFieldValidator(string data, bool ignoreChars, bool result)
{
var rule = new RequiredFieldValidationRule("test field");
rule.IgnoreMaskCharacters = ignoreChars;
ValidationResult temp = rule.Validate(data, CultureInfo.CurrentCulture);
Assert.That(temp.IsValid, Is.EqualTo(result));
}
did have to download the a new version of TestDriven.net, but