I'm supposed to use the VS unit testing framework to ensure all code is working correctly. However I'm having A LOT of trouble getting tests that require command line arguments to work (since command line inputs must be given at runtime...and with unit tests there is no real "runtime"). Is there a way to run my unit tests with command line argument inputs? I realized this is not the ideal way to construct a program, but I unfortunately do not decide how the testing process works.
I've read that I can potentially write a batch file and include it in the MStest/testcontainer folder. There are some hurtles I have to clear in order to do it this way though. These hurtles include:
1) I know nothing about batch files
2) I don't know where the MStest/testcontainer folder is, how to access it, how it works, or even how to add files to it (since it seems to be hidden or not easily accessible).
3) I don't know what I would do with the batch file even if it was written correctly and in the MStest/testcontainer folder. How are my tests even supposed to know it's there, let alone take input from it?
So to summarize: How does one make VS unit tests take in command line arguments? If I DO have to use the batch file method, I would much appreciate it being explained to me like I'm 5. I apologize if I appear a little helpless in this subject, but I can't find any clear or useful explanations on how any of these things work within this specific context.
Thanks a ton.