On occasion, there may be a case where you go into Test Explorer, knowing that you have XUnit tests within the solution; the Xunit tests are in a public class, they are public, and they are decorated correctly (for example, [Fact]). However, they do not appear in the Text Explorer.
If you have MS Test tests, you may find that they do appear in the Test Explorer - only the XUnit tests do not.
Why?
To run Xunit tests from the command line, you’ll need this package.
To run Xunit tests from Visual Studio, you’ll need this package.
References
https://xunit.github.io/docs/nuget-packages.html