Unit tests for I/O functions

BCS ao at pathlink.com
Fri Apr 27 23:07:50 PDT 2007


Reply to Jason,

> 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?
> 

that's what I do.




More information about the Digitalmars-d-learn mailing list