I am writing some unit tests in Visual Studio 2010. I can run all tests using Run All Tests in Current Context.
However, if I write a new unit test, it is not picked up by the environment - in other words, I can not find it in the test list editor, running all the tests or elsewhere. If I unload the project and then reload it; A new test is available to run.
When I add a unit test, I just add a new method to an existing TestClass and decorate it with the [TestMethod] attribute - nothing unusual.
What could be causing this behavior, and how can I make it work?
unit-testing visual-studio visual-studio-2010 mstest
driis Apr 15 2018-10-15T00: 00Z
source share