Inspired by a local “Software Craftsmanship” group, and the “Coding Dojo” at CodeMash 2011, I decided to set up a weekly coding dojo at work. Every Friday, two developers spend an hour during lunch doing katas or learning something new.
One of the tools we use a lot for mocking in unit tests is Moq. I wanted to put together an exercise that would help the other developers get more familiar with Moq, and be simple enough for someone with no Moq experience at all to learn how to use it.
Drawing inspiration from the RubyKoans, I decided to put together a set of Koans for learning Moq.
My peers at work have so far found it very helpful for an easy and hands-on introduction to mocking with Moq.