O'Reilly logo

Visual Studio 2012 Cookbook by Richard Banks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Unit testing C++ applications

We saw the Unit testing .NET application recipe in Chapter 4, .NET Framework 4.5 Development, C++ developers were not forgotten and Visual Studio 2012 includes support for cppUnit for unit testing your applications.

Just to help with the confusion, C++ developers can choose from two types of unit test projects—the Native Unit Test project and the Unit Test Library (Windows Store apps) project. The first applies exclusively to desktop C++ development, while the second applies exclusively to Windows Store apps.

In this recipe we’ll create a simple piece of code and add some unit tests to it.

Getting ready

Simply start Visual Studio 2012 and you’re ready to go. You can do this in any version of Windows since you’re going ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required