Best way to unit test console c# app
问题 I have a simple console app. It's fired of with a normal main and the entire program recides in main. It uses the Command Line Parser Library. Then I have a second project in the solution containing unit tests for the application. But I don't seem to find a good way to start processes of the main program from the tests. My current code for actually start the process looks something like this. ... process = new Process(); process.StartInfo.FileName = "FooBar"; process.StartInfo.Arguments =