title: Are these the sort of edge cases I should think of when using unit testing?
body: <p>When writing unit tests, it is normally advisable to test the edge cases.</p>
  
  <p>However, are these the right sort of things?</p>
  
  <ul>
  <li>Test the connection to the db is not open (assert an exception is thrown)</li>
  <li>Assert that a table, which must always have >1 row, does so</li>
  <li>Assert that a field which is required, is != null.</li>
  <li>Assert that an ip has been set in the right format (I can parse the string to IP).</li>
  </ul>
  
  <p>Thanks</p>