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.
Simply start Visual Studio 2012 and you’re ready to go. You can do this in any version of Windows since you’re going ...