How to Moq

Moq provides various ways of setting up and verifying behaviour, and I've recently seen some confusion over how. So here's some examples and pointers.

Legacy Projects, Technical Debt and NDepend

Legacy systems are commonplace, but it's difficult to come up with anything concrete to justify the expense of an update to someone with an eye on the bottom line. Thankfully, the folks at NDepend have now built technical debt computation on top of their code analysis tools, giving you a much easier way to have these sorts of discussions. Here's a real-world example.