Had a strange occurance today...
In between writing unit tests in VSTS (Visual Studio Team System 2008 Developer Edition), for some reason VSTS stopped recognising the test classes as tests - so all context sensitive test actions, buttons, context menu etc for unit tests were disabled.
Still have no idea why - but I have a sneaking suspicion that some solution files may have been delete.
To get this working again I simply added another Test project:
- Right click on the solution and select Add - New Project...
- Select the 'Test Project' template then click OK.
This sorts out visual studio - by adding in the solution items:
- LocalTestRun.testrunconfig
- <projectname>.vsmdi
- Remove the newly added project.
This fixed it for me.