Reporter | Bastian (Schenke) |
---|---|
Created | Jan 16, 2012 7:10:23 PM |
Updated | Jan 16, 2012 7:10:47 PM |
Priority | Normal |
Type | Unspecified |
Fix versions | No Fix versions |
State | Submitted |
Assignee | Unassigned |
Subsystem | No subsystem |
Affected versions | No Affected versions |
Fixed in build | No Fixed in build |
using NUnit.Framework; namespace Tests { [TestFixture] internal class AmbigousTests { [Category("multi test")] [TestCase("pass")] [TestCase("pass as well")] public void TestRun(string input) { if (!"pass".Equals(input) && !"pass as well".Equals(input)) Assert.Fail(); } [Test] [Category("single test")] public void TestRunProperly() { Assert.AreEqual("pass", "pass"); } [Test] [Category("single test")] public void TestRun() { Assert.IsTrue(true); } } }
If the TestFixture above is executed everything is fine. All tests are green.
Nevertheless the navigation to the test methods is not working properly. If you doubleclick the test #TestRun() in the "Unit Test Session"-View the cursor ends up at the first method with the name TestRun, ignoring the parameters the testmethod might expect (in this case the wrong method).