So, I wrote next "test" test :-) for Nunit 2.6 (use 2.6.0.12035 ver.)
[TestCase(1, 2, Result = 3)]
[TestCase(3, 4, Result = 7)]
[TestCase(5, 6, Result = 11)]
public int Add_Test(int a, int b)
{
return a - b;
}
Next, I run it with Resharper 6.1.37.86. Resharper shows that all three test are passed. Than I try to run test with nunit GUI - nunit.exe. Tests fall with strange error message: "Method has non-void return value". In fact all tests should fail with unexpected value of result. Does this feature work incorrect or I do smth. wrong? By the way, next I try do without set Result property and it works perfect with both runners:
[TestCase(1, 2, 3)]
[TestCase(3, 4, 7)]
[TestCase(5, 6, 11)]
public void Add_Test1(int a, int b, int result)
{
Assert.AreEqual(result, a - b);
}