public void AuthenticationLogoutShouldClearSessionAndSingout() { ISessionHelper session = MockRepository.GenerateStub <ISessionHelper>(); IFormsAuthentication forms = MockRepository.GenerateStub <IFormsAuthentication>(); Authenticator authenticator = new Authenticator(null, session, forms); authenticator.Logout(); session.AssertWasCalled(s => s.Clear()); forms.AssertWasCalled(f => f.SignOut()); }