We use this kata to demonstrate the concepts of test doubles.
Overview
The character copier is a simple class that reads characters from a source and copies them to a destination one character at a time.
When the Copy() method is called on the copier, it should read characters from the source and copy them to the destination until the source returns a newline (‘\n’). Implement the character copier using test doubles for the source and the destination as follows.