I've built a unit test project for a library in VS 2008 C#. The library will react to commandline arguments. I have set the unit test's Properties -> Debug -> Start Options with default arguments to trigger specific reactions in the target library. My questions are:
1) When the library code executes Environment.GetCommandLineArgs() it does not see any of the default arguments I have set. I have even copied the default arguments from the unit test project to the library project's Properties with no effect. What am I not doing (right)?
2) Is there a programatic way to set the command line arguments? I would like the various tests to be able to set the args and watch the library behavior.
Thank you, Jim