I want to understand the best way to design testable applications in C++, perhaps in comparison to C# (because its my background and great for testing)
I'm used to coding to interfaces, dependency injection, inversion of control frameworks, and mock objects. Since C# has a lot of different language features I'm not sure how much of the patterns should still apply. I also imagine C++'s unique features / limitations might lend to different testing strategies.
I've looked at unit testing frameworks, and I like Google Test, but it's also important to write my fresh code to be testable as possible.
- Are there any opensource projects which could be recommended as C++ testing done right?
- Any books or articles that go into this topic in greater detail?
- Recommendations for additional frameworks / libraries
Thanks