assertLoggedOut method

void assertLoggedOut()

Assert that no user is currently authenticated.

Throws AssertionError if a user is set.

Implementation

void assertLoggedOut() {
  if (_fakeGuard.check()) {
    throw AssertionError('Expected no authenticated user but one was found.');
  }
}