testDisposeWithoutShow() {
    dialog = createTestDialog();
    mockCtrl.$replayAll();

    assertNotOpen('Dialog should not be open before dispose()', dialog);
    dialog.dispose();
    assertNotOpen('Dialog should not be open after dispose()', dialog);

    mockCtrl.$verifyAll();  // Verifies AFTER_HIDE was NOT dispatched.
  }
Tests that when you dispose a dialog (without ever showing it first) the
flags indicating open are correct and the AFTER_HIDE event is never
dispatched (and no errors happen).