Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all articles
Browse latest Browse all 106942

RSRP-287623: Tests with TestCase attribute cannot work well

$
0
0
Reporter Kazunori SAKAMOTO (Kazunori.SAKAMOTO) 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.

  • NG: Test
- OK: TestMethod (1 test)
- OK: TestMethod(System.Int32[])

However, TestMethod has 2 tests and it should has failed test (e.g. NG: TestMethod(System.Int32[])).

Viewing all articles
Browse latest Browse all 106942

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>