static void Main() { UploadTest test = new UploadTest(); test.Test(); // Keep the console window open in debug mode. Console.WriteLine("Press any key to exit."); Console.ReadKey(); }