How to run xunit in Visual Studio 2012?

Posted by user1978421 on Stack Overflow See other posts from Stack Overflow or by user1978421
Published on 2013-05-01T11:26:48Z Indexed on 2013/10/29 3:54 UTC
Read the original article Hit count: 159

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

enter image description here

© Stack Overflow or respective owner

Related posts about unit-testing

Related posts about visual-studio-2012