I need to write a unit test for a method that will print a document. Is there an easy way to send the output to the Windows equivalent of /dev/null? I'm guessing that having our build server print a document on every check in is going to get expensive quickly. ;)
Ideally, this would work on both our build server (which has no default printer) and our development machines (which do), so I'd prefer not to change the default printer.
Thanks for all the wonderful answers that will undoubtedly follow this fascinating question.