Exemple #1
0
        public void CanGenerateLink()
        {
            RequestingUrl("/search/");

            string html = HtmlHelper.GenerateLink(requestContext, routes, "Hello", null, "find", "Search", new RouteValueDictionary(new { q = "hello" }), null);

            Assert.That(html, Is.EqualTo("<a href=\"/search/find?q=hello\">Hello</a>"));
        }