The current nowwhat emits some warning strings if some environment variables are not set, but still returns exit 0. Put a test in place for this, and then switch to exit code 1. Need to think about how to do this, because the warnings are emitted to the console rather than returned.
[x] test harness to use Console.SetOut (and Flush) to capture stdout
[x] write output to expected folder
[x] read expectation
[x] assert expected == found; delete found if true
The current
nowwhat
emits some warning strings if some environment variables are not set, but still returns exit 0. Put a test in place for this, and then switch to exit code 1. Need to think about how to do this, because the warnings are emitted to the console rather than returned.Console.SetOut
(andFlush
) to capturestdout
expected
folder