Im trying to change my application to a console application. I want it to work so that if one parameter is passed method 1 is executed and if no parameter is passed method 2 is executed.
From the code I have, when I try run it nothing happens.
Here is my main code:
[STAThread]
static void Main(string[] args)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run();
RunTestCases runTestCases = new RunTestCases();
DataIntegration dataIntegration = new DataIntegration();
if (args != null)
{
runTestCases.RunTestCaseForSelectedField(args);
}
else
{
runTestCases.RunTestCaseForAllFields();
}
}
Any ideas?
Thanks