public void TestLogOff()
        {
            var accountController = new AccountController();
            var formsAuthenticationSignOutCalled = false;
            RedirectToRouteResult redirectToRouteResult;

            //Scope the detours we're creating
            using (ShimsContext.Create())
            {
                //Detours FormsAuthentication.SignOut() to an empty implementation
                ShimFormsAuthentication.SignOut = () =>
                {
                    //Set a boolean to identify that we actually got here
                    formsAuthenticationSignOutCalled = true;
                };
                redirectToRouteResult = accountController.LogOff() as RedirectToRouteResult;
                Assert.AreEqual(true, formsAuthenticationSignOutCalled);
            }

            Assert.NotNull(redirectToRouteResult);
            Assert.AreEqual("Index", redirectToRouteResult.RouteValues["Action"]);
            Assert.AreEqual("Home", redirectToRouteResult.RouteValues["controller"]);
        }