Unit Test Url.Action
问题 I am trying to unit test the code I got from an DotNetOpenAuth example but I have a hard time getting the UrlHelper to work in my tests. Somewhere on the LogOn ActionResult on my controller it calls the following UrlHelper. The following example is a simplified version of that ActionResult. public ActionResult TestUrlHelper() { var test = Url.ActionFull("LogOnReturnTo"); return View(); } My test looks something like this: [Test] public void TestTest() { AccountController controller =