Visual Studio 2013 doesn't discover unit tests

前端 未结 30 1962
余生分开走
余生分开走 2020-11-28 21:46

I have a simple solution in visual studio 2013 that is composed by one web project, one library project and one unit test project. When I open the solution and try to run th

30条回答
  •  有刺的猬
    2020-11-28 22:25

    For future googlers I had a rare scenario that caused this.

    On my base test class I had a property named TestContext. This interfered with MSTest's reserved TestContext property causing all my tests to be hidden from VS/Resharper except one (which did not inherit from the base).

提交回复
热议问题