anchor.diff:   * body of the function passed to this will inherit this group's description.
    */
   void group(String description, void body()) {
  -  _ensureActiveSuite();
  +  _ensureInitialized();
   
     // Concatenate the new group.
     final oldGroup = _currentGroup;
  
positive.code:  * calls.
   */
  void test(String spec, TestFunction body) {
    _ensureActiveSuite();
  
    _currentSuite._tests.add(new TestCase(
        _currentSuite._tests.length + 1, _fullSpec(spec), body, 0));
  }
  
  /**
  
negative.code:     : success = false,
        fail = false,
        error = false {
      message = '''<tr>
            <td>${id}</td>
            <td class="unittest-error">NO STATUS</td>
            <td>Test did not complete</td>
          </tr>''';
    }
  
    bool get isComplete() => success || fail || error;
  
    void recordSuccess() {
      _setMessage('pass', '', null);
      success = true;
    }
  
    void recordError(String msg, String stackTrace) {
      _setMessage('error', msg, stackTrace);
      error = true;
    }
  
    void recordFail(String msg, String stackTrace) {
      _setMessage('fail', msg, stackTrace);
      fail = true;
    }
  
    void _setMessage(String type, String msg, String stackTrace) {
      message =
          '''
          <tr>
            <td>${id}</td>
            <td class="unittest-$type">${type.toUpperCase()}</td>
            <td>Expectation: $description. $msg</td>
          </tr>
          ''';
  
      if (stackTrace != null) {
        message +=
            '<tr><td></td><td colspan="2"><pre>${stackTrace}</pre></td></tr>';
      }
    }
  }
  
  