mmurdoch/arduinounit — pull request #32 by mattsoftware (2014-04-12 22:41:18+00:00)
Title: Adds a new class, FakeStreamBuffer

to allow setting multiple characters to be added to the stream for testing.

This solves the issue of a method under test requring to read multiple characters from the stream. These characters can be added to the FakeStreamBuffer and will be read from the stream one by one until the buffer is empty, when it then reverts back to sending -1 to all reads.