How to run xunit in Visual Studio 2012?
- by user1978421
I am very new to unit testing. I have been following the procedures for creating a unit test in visual studio 2012 on http://channel9.msdn.com/Events/TechEd/Europe/2012/DEV214.
The test just won't start. And it will prompt me "A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, add an executable project to this solution which references the library project. Set an executable project as the startup project.
Even though I attached the unit test class code to a console program, the test does not start and the test explorer is empty. In the video, it doesn't need to have any running program. The lady only created a class library, and the test will run.
what should I do?
Note. there is no "create unit test" on the mouse right click menu