My favorite and very powerful technique for mocking in C++.

  1. How to mock anything in C++: Test Base Class Injection
  2. An example of TBCI in action: Refactoring Legacy Socket code before and after
  3. How to mock a function or class from the STL (coming soon)

Back to MiddleRaster’s pages.