Create and run unit tests in Visual Studio

The Visual Studio unit test tools are designed to support developers and teams who incorporate unit testing in their software development practices. Unit tests give developers and testers an efficient, maintainable way to look for logic errors in the methods of classes in Visual C#, Visual Basic, and Visual C++ projects.

In this section

Unit test C# code

Unit testing a C++ DLL

Run unit tests in Test Explorer

See also

Unit Test Your Code