nunit-vs-adapter
nunit-vs-adapter copied to clipboard
TestCase doesn't start alone if it has a string parameter with a STX (0x0002) character.
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();
}
}
}
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
Ctrl+R T from within the test class also does not run the test.