I've unit tests structurized in that manner:
namespace X.Y.Z
{
public class Foo
{
public string Method1()
{
}
}
}
public class FooTest
{
public class Method1
{
[Fact]
public void do_something()
{
}
[Fact]
public void throws_some_exception()
{
}
}
}
When tests are arranged in this way I see namespace based tree structure in Unit Test Explorer/Session (X -> Y -> Z - that's ok) and then Method1 test fixture without BarTest name before in the tree. The problem starts when I've two classes in the same namespace with methods with the same names f.ex. Class1.Method1 and Class2.Method1. Then, on the runner list I see two test fixtures named Method1. It's not clear which one is for Class1 and which for Class2 (see attachment). I can add additional nested classes but it doesn't help.
- Unit Test Explorer/Session is set to show by Structure and Namespace