15.6 Defining Custom Segment Variables; UNIT TEST: TESTING CUSTOM SEGMENT VARIABLES
parent
e7f13be7d8
commit
0f14a97ae2
|
@ -99,11 +99,12 @@ namespace UrlsAndRoutes.Tests
|
|||
[TestMethod]
|
||||
public void TestIncomingRoutes()
|
||||
{
|
||||
TestRouteMatch("~/", "Home", "Index");
|
||||
TestRouteMatch("~/Customer", "Customer", "Index");
|
||||
TestRouteMatch("~/Customer/List", "Customer", "List");
|
||||
TestRouteFail("~/Customer/List/All");
|
||||
TestRouteMatch("~/Shop/Index", "Home", "Index");
|
||||
TestRouteMatch("~/", "Home", "Index", new { id = "DefaultId" });
|
||||
TestRouteMatch("~/Customer", "Customer", "index", new { id = "DefaultId" });
|
||||
TestRouteMatch("~/Customer/List", "Customer", "List",
|
||||
new { id = "DefaultId" });
|
||||
TestRouteMatch("~/Customer/List/All", "Customer", "List", new { id = "All" });
|
||||
TestRouteFail("~/Customer/List/All/Delete");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue