Mock Me Tender

It must be NDC that inspires test-driven songs. Last year it was We Can Mock It Out, this time it’s Mock Me Tender. Here we go…

Mock me tender,
Mock me sweet.
Time is to confess:
You have made my code complete –
Let us gently test.

Mock me tender,
Mock me true,
Make asserts fulfill.
For, my darling, I mock you,
And I always will.

Mock exceptions,
Mock success.
Mock me whole, my dear.
Don’t be shy, you’re always blessed –
You can TDD.

Mock me tender,
Mock me true,
Make my tests all pass.
For, my darling, I mock you,
And our mocks will last.

Habits can be
Hard to change,
And please don’t feel hurt:
You should always first arrange,
Act and then assert.

Mock me tender,
Mock me true,
Make asserts fulfill.
For, my darling, I mock you,
And I always will.

Of course the whole genre is inspired by Roy Osherove.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>