As part of my automated testing (xUnit), I am trying to start a process, read its standard output, wait for it to finish, and then return the output.
The following co