The /out switch should send any output that your tests
normally write to the console to a file - note that
it doesn't capture any other output, such as the
test summary info that NUnit writes.
However, it sounds like you want to capture output
from the program you are testing, rather than your
test, so you can assert on it. The easiest way to
do that is to redirect Console.Out in your test
to a stringwriter.
Charlie
Mike,
When I've had to deal with this problem, I usually resort to either
overriding System.Console.Out to a file or string writer, or I write the
method or object so that it accepts a stream or textwriter to which I
can write, and inject a test or mock one into the class at test time.
Brad