title: How to test ASP.NET code-behind
body: <p>We are in the process of re-writing legacy code, but currently I am wondering how to test code-behind methods. </p>
  
  <p>Detail:</p>
  
  <ol>
  <li>No aspx controls are used.</li>
  <li>In fact code-behind reads html file, fills data from the database and writes the final <code>html</code> to the response.</li>
  </ol>
  
  <p>I understand code-behind methods are testable, but how? Any tools? Can you provide some reference please? Thanks.</p>