I need to unit test this method. I'm using moq as my mocking framework, if that helps.
[AcceptVerbs(HttpVerbs.Get)]
public RedirectToRouteResult LogOff()
{
FormsAuthentication.SignOut();
return RedirectToAction("Index", "Post");
}
cheers :)
EDIT: It was mainly the FormsAuthentication i was wondering. Should I even be testing that? I suppose i would need to mock up an Identity and then check the IsAuthenticated is false?