public void Test() { var redirect = new ConsoleRedirect(); var result = redirect.Run(); Debug.WriteLine(string.Format("Standard output: " + result.ErrorOutput)); Debug.WriteLine(string.Format("ErrorOutput output: " + result.StandardOutput)); Debug.WriteLine(string.Format("Exit code: " + result.ExitCode)); }