Reporter | Kazunori SAKAMOTO (Kazunori.SAKAMOTO) |
---|---|
Created | Jan 6, 2012 5:34:04 PM |
Updated | Jan 6, 2012 5:34:04 PM |
Priority | Normal |
Type | Bug |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Victor Kropp (victor.kropp) |
Subsystem | Unit Testing |
Affected versions | 6.1 |
Fixed in build | No Fixed in build |
When I execute the following test with NUnit 2.5.10.11092 and ReSharper 6.1,
[TestFixture]
public class Test
{
[Test]
[TestCase(new[] { 1 })]
[TestCase(new[] { 1, 2 })]
public void TestMethod(int[] values) {
Assert.That(values.Length, Is.EqualTo(1));
}
}
ReSharper reports the following result.
- OK: TestMethod(System.Int32[])
However, TestMethod has 2 tests and it should has failed test (e.g. NG: TestMethod(System.Int32[])).
[TestFixture]
public class Test
{
[Test]
[TestCase(new[] { 1 })]
[TestCase(new[] { 1, 2 })]
public void TestMethod(int[] values) {
Assert.That(values.Length, Is.EqualTo(1));
}
}
ReSharper reports the following result.
- NG: Test
- OK: TestMethod(System.Int32[])
However, TestMethod has 2 tests and it should has failed test (e.g. NG: TestMethod(System.Int32[])).