Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with unit testing in VS2010?

Tags:

I'm new to both unit testing and Visual Studio 2010 (just upgraded from 2008). I'm interested in using VS2010's new built-in unit testing tools, but would like to get the lay of the land first. I haven't been able to find any resources or tutorials on unit testing with VS2010 specifically - has anyone found a good walk-through?

I'm also open to persuasion that we should stick with NUnit or the like, if anyone knows a reason to avoid the built-in tools.

like image 657
Herb Caudill Avatar asked Jun 09 '10 18:06

Herb Caudill


People also ask

How do I create a unit test project in Visual Studio 2022?

To create a unit test projectOn the File menu, select New > Project, or press Ctrl+Shift+N. On the Create a new project page, type unit test into the search box. Select the project template for the test framework that you want to use, for example MSTest Test Project or NUnit Test Project, and then select Next.

How do I run unit tests in Visual Studio?

To run all the tests in a default group, choose the Run icon and then choose the group on the menu. Select the individual tests that you want to run, open the right-click menu for a selected test and then choose Run Selected Tests (or press Ctrl + R, T).


1 Answers

PEX and PEX Tutorial

like image 53
Srikar Doddi Avatar answered Oct 31 '22 16:10

Srikar Doddi