If I have a class that reads from an InputStream and writes to an OutputStream, what is the recommended method for writing a unit test for sending commands in one stream and testing its output of the other stream? Would a pair of MemoryStream's be most appropriate?