[Please do not mail me a copy of your followup]
boost-users@lists.boost.org spake the secret code
If I was developing a mocking framework, I'd rely on some classic Unit Testing/Mocking examples to support the motivation, like those about logging or sending e-mail. Simply, I'd translate Roy Osherove's introductory examples: http://www.youtube.com/watch?v=fAb_OnooCsQ
Those are so well known within testing community, they are almost idiomatic, hence best for selling a framework.
If I had known about Turtle when I was writing my tutorials, I would have used it instead of a hand-written fake when talking about creating UI dialogs with TDD: http://legalizeadulthood.wordpress.com/2009/07/05/c-unit-tests-with-boost-te... I think it would have made things a little easier to explain and certainly save work in that you don't have to make the test doubles by writing lots of boiler plate code. I agree that this is the area where Turtle's documentation could use the most improvement -- real-world examples that get away from just showing the syntax and show the mocks being used in a meaningful way. -- "The Direct3D Graphics Pipeline" free book http://tinyurl.com/d3d-pipeline The Computer Graphics Museum http://computergraphicsmuseum.org The Terminals Wiki http://terminals.classiccmp.org Legalize Adulthood! (my blog) http://legalizeadulthood.wordpress.com