Recently, my Visual Studio instance went a bit crazy. Visual Studio could not find the tests within my project and prevented me from running them locally. The tests still ran on the build server, so it was obviously an issue with my machine. When I looked at the Visual Studio Test Explorer console, I was presented with this message:

Build your solution to discover all available tests

To fix this issue, I closed all running instances of Visual Studio (using task explorer to kill the processes usually works best). Next, I opened a command terminal and ran this command:

After re-opening Visual Studio my tests appeared! Happy Coding 🤘