nunit-vs-adapter icon indicating copy to clipboard operation
nunit-vs-adapter copied to clipboard

TestCase doesn't start alone if it has a string parameter with a STX (0x0002) character.

Open GibbOne opened this issue 8 years ago • 2 comments

Context:

  • VS2017
  • NUnit3 Test Adapter 3.9.00
  • NUnit 3.6.1
  • .NET 4.6.2

How to reproduce

Let try to run this test alone

using NUnit.Framework;

namespace ClassLibrary1
{
    public class Class1
    {
        [Test]
        [TestCase("\u0002")]
        public void DoesntStart(string aString)
        {
            Assert.Fail();
        }
    }
}

GibbOne avatar Jan 19 '18 09:01 GibbOne

I've confirmed this bug. The test runs if you select All Tests, but not if you select the individual test in Test Explorer or if you select the parent class when grouped that way and use run selected test. I tried with the console and could not reproduce.

I expect that it is something to do with the test name that VSTest is passing to the adapter not getting recognized.

Tested with VS 15.5.4

rprouse avatar Jan 23 '18 13:01 rprouse

Ctrl+R T from within the test class also does not run the test.

rprouse avatar Jan 23 '18 13:01 rprouse