This is an example project of how to write unit tests in C++ using Google Test/Google Mock. The best way of using this is moving commit by commit and seeing the incremental process of writing tests.
sergiorgiraldo/StackTDDExample
A step-by-step implementation of a Stack in C++ using TDD (Google Test/Google Mock)
C++