Created
September 20, 2011 04:54
-
-
Save ChrisMissal/1228363 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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