Starting with version 2.5, NUnit contains a number of remarkable attributes that can simplify life when writing a unit (and not only) of tests using the Data Driven Tests methodology.
and others, the detailed description of which you can read in the official documentation.
Resharper since 6.x supports these attributes.
')
For clarity, I will give a horse-vacuum example with
TestCase :
[TestCase(4, 2, 2, TestName = "TC-10010" , Description = "Right division result assertion test" )]
[TestCase(6, 2, 2, TestName = "TC-10020" , Description = "Wrong division result test" )]
[TestCase(3, 0, 0, ExpectedException = typeof (DivideByZeroException), TestName = "TC-10030" , Description = "Testing division by zero" )]
public void TestWithParamsAndNames( int arg1, int arg2, int arg3)
{
Assert.AreEqual(arg1 / arg2, arg3);
}
* This source code was highlighted with Source Code Highlighter .
In Resharper's Test Session Explorer, it will look like this:

"
NUnit also allows you to connect an external test case provider - you can implement
ITestcaseProvider or
ITestCaseBuilder interfaces in your NUnit addon, for example, to read test data from an xls file. It is checked that Resharper and NUnit GUI runner support the visualization of test cases created by the
ITestCaseProvider supplier, but the
ITestCaseBuilder is not supported.