Vagif Abilov's blog on .NET

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 Comment

(required) 

(required) 

(optional)

(required) 


Please add 2 and 2 and type the answer here: