title: How do you unittest exceptions in Dart?
body: <p>Consider a function that does some exception handling based on the arguments passed:</p>
  
  <pre class="lang-dart prettyprint-override"><code>List range(start, stop) {
      if (start &gt;= stop) {
        throw new ArgumentError("start must be less than stop");
      }
      // remainder of function
  }
  </code></pre>
  
  <p>How do I test that the right kind of exception is raised?</p>