I am trying to write a unit test for an action method which calls the Controller.RedirectToReferrer() method, but am getting a "No referrer available" message.
Controller.RedirectToReferrer()
How can I isolate and mock this method?
Have you thought about creating a test double?