Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GibbOne opened this issue Jan 19, 2018 · 2 comments

Comments

@GibbOne
Copy link

GibbOne commented Jan 19, 2018

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();
        }
    }
}
@rprouse
Copy link
Member

rprouse commented Jan 23, 2018

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
Copy link
Member

rprouse commented Jan 23, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants