Skip to content

Instantly share code, notes, and snippets.

@ChrisMissal
Created September 20, 2011 04:54
Show Gist options
  • Save ChrisMissal/1228363 to your computer and use it in GitHub Desktop.
Save ChrisMissal/1228363 to your computer and use it in GitHub Desktop.
[Test]
public void SearchController_routes_MotorcycleSearch_correctly()
{
"~/motorcycle-search/handlebars".ShouldMapTo<SearchController>(x => x.SingleSearch("handlebars"));
}
[Test]
public void SearchController_routes_Product_correctly()
{
var route = "~/product/123-456".ShouldMapTo<SearchController>(x => x.ProductDetail(null));
route.Values["sku"].ShouldEqual("123-456");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment