O'Reilly logo

Visual Studio 2013 Cookbook by Richard Banks, Jeff Martin

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

Previously, we saw the .NET-based Unit testing .NET applications recipe in Chapter 4, .NET Framework 4.5.1 Development, but C++ developers have not been forgotten, and Visual Studio 2013 includes built-in support for unit testing with CppUnit.

C++ developers can choose from several types of unit test projects such as the Native Unit Test Project, the Unit Test Library (Windows Store apps) project, and the Windows Phone Unit Test App project. The first applies exclusively to desktop C++ development, the second applies exclusively to Windows Store apps, and the third is for Windows Phone-based apps.

In this recipe, we'll create a simple piece of code and add some unit tests to it that take advantage of the Native Unit ...

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