Unit tests for I/O functions

Jason House jason.james.house at gmail.com
Fri Apr 27 17:36:25 PDT 2007


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?


More information about the Digitalmars-d-learn mailing list