title: How to instantiate DataReceivedEventArgs or be able to fill it with data?
body: <p>I'm starting a process and redirecting the error stream to be able to parse it and know what happened. I'm doing it this way:</p>
  
  <pre><code>_proc.ErrorDataReceived += new DataReceivedEventHandler(NetErrorDataHandler);
  </code></pre>
  
  <p>Where NetErrorDataHandler has the following signature:</p>
  
  <pre><code>private void NetErrorDataHandler(object sendingProcess, DataReceivedEventArgs errLine)
  </code></pre>
  
  <p>So far I have to work with DataReceivedEventArgs, but I'm not sure how to test it.  Currently I'm running the process I'm working with. You can`t create instance of DataReceivedEventArgs with additional data, so how can I overcome this obstacle? The only way I see how to do this now is to create a process that would do the work for me. However, this isn't the best option for testing purposes.</p>