When people get started with unit testing, they often get stumped when it comes to testing functions that have side effects. This post is a gentle introduction to some of the concepts involved in testing side effects.
Spies
A collection of 2 posts
The Spy of Testadel: A Medieval Testing Tale
The kingdom of Testadel is under threat. Learn how to test side effects in your code through this medieval tale of lies, deceit, magic and espionage.