Search code examples
c#unit-testingcastle-monorail

Unit Testing Monorail's RedirectToReferrer()


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.

How can I isolate and mock this method?


Solution

  • Have you thought about creating a test double?