title: How to test if a connection to a Db is established successfully?
body: <p>I want to write a unit-test which asserts a connection string is valid so that a conenction is established to a SQL Db.</p>
  
  <p>if I have :</p>
  
  <pre><code>string connectionString = GetCOnenctionString();
  bool conenctionEstablished = false;
  </code></pre>
  
  <p>How can I set 'conenctionEstablished' variable's value as a result of a check to a Db with the 'connectionString' provided?</p>
  
  <p>So that I can use it in an Assert.</p>