Skip to content

Commit

Permalink
feat: Improve Character Copier README
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromsantos committed Jan 15, 2024
1 parent 6e3cbce commit 70f4d0b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions 14_CharacterCopier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@

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 method Copy is called on the character copier then it should read characters from the source and copy them to the destination until the source returns a newline (\n).
When the method Copy is called on the copier then it should read characters from the source and copy them to the destination until the source returns a newline (\n).

The exercise is to implement the character copier using Test Doubles for the source and the destination
Try using Spies – manually written Mocks – and Mocks written with a mocking framework.

Start from these definitions provided in kata.cs.
Start from these definitions provided in kata.ts.

| **GetChar** | **SetChar** |
| ----------- | ----------- |
| 'a' | 'a' |
| 'b' | 'b' |
| '\n' | NA |

0 comments on commit 70f4d0b

Please sign in to comment.