title: Data-driven unit testing - Problem with CSV encoding?
body: <p>I have the following CSV file that is used in my data-driven unit test:</p>
  
  <pre><code>File;expected
  Resources.resx;default
  Resources.de.resx;de
  AttachmentDetail.ascx.it.resx;it
  SomeOtherFile.rm-CH.resx;rm-CH
  </code></pre>
  
  <p>"File" and "expected" are the header. But if I want to get the "File"-column in the code like</p>
  
  <pre><code>TestContext.DataRow["File"].ToString();
  </code></pre>
  
  <p>I get the error</p>
  
  <blockquote>
    <p>System.ArgumentException: Column
    'File' does not belong to table ..</p>
  </blockquote>
  
  <p>When I add the CSV file to an existing test-case over the test-method properties, it seems as if the "File"-column has some strange signs before its name, much like an encoding problem. But if I open the CSV file with Notepad, Notepad++ or even TextMate (on Mac) I don't see any such signs and I'm not able to get rid of them.</p>
  
  <p>Can someone give me a suggestion about this problem?</p>