title: Batch process in c#
body: <p>I am having a Java batch process which I used in C# to run  process. I want to have a testcase  to check whether the batch process is running or not.</p>
  
  <p>I used the batch process as: </p>
  
  <pre><code>void batch_process(string process)
  {
      try
      {
          string strFilePath = Path.Combine(batch_process_path, process);
          ProcessStartInfo psi = new ProcessStartInfo(strFilePath);
          psi.RedirectStandardOutput = true;
          psi.RedirectStandardError = true;
          psi.WorkingDirectory = batch_process_path;
          psi.WindowStyle = ProcessWindowStyle.Hidden;
          psi.UseShellExecute = false;
          psi.ErrorDialog = true;
      }
  }
  </code></pre>
  
  <p>How can this test be done?</p>
  
  <p>I want to write an unit test case to check whether the process will start or not.</p>