[376] Run Unit Test Method doesn't appear when defined in different file

Hello. Don't know if this is been fixed, but if you create a fixture using
partial classes like this:

File1.cs

public partial class Fixture
{
}

File2.cs

public partial class Fixture
{

public void TestMethod()
{
}
}

TestMethod() won't have Run Unit Tests enabled.

Adding a (not compilable) to File2.cs enables the Run Tests
button again. To clarify, the test runner does run the tests, it's the VS
UI that's not available, and the only option is to run the whole assembly.

Regards,
Pablo

--


-- Bother! said Pooh,
when the Alien thingie popped out of his chest.

Pablo Montilla
www.odyssey.com.uy

1 comment
Comment actions Permalink

Hello Pablo,

Fixed in 3.0.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


PM> Hello. Don't know if this is been fixed, but if you create a fixture
PM> using partial classes like this:
PM>
PM> File1.cs
PM>
PM> public partial class Fixture
PM> {
PM> }
PM> File2.cs
PM>
PM> public partial class Fixture
PM> {
PM>
PM> public void TestMethod()
PM> {
PM> }
PM> }
PM> TestMethod() won't have Run Unit Tests enabled.
PM>
PM> Adding a (not compilable) to File2.cs enables the Run
PM> Tests button again. To clarify, the test runner does run the tests,
PM> it's the VS UI that's not available, and the only option is to run
PM> the whole assembly.
PM>
PM> Regards,
PM> Pablo
PM> Pablo Montilla
PM> www.odyssey.com.uy


0

Please sign in to leave a comment.