public void TestNameMismatches() { var expectedRoute = new { controller = "HoomAttr", action = "Mindex" }; RouteAssert.HasRoute(routes, "/homeattr/index", expectedRoute); Assert.That(assertEngine.StringMismatchCount, Is.EqualTo(2)); Assert.That(assertEngine.Messages[0], Is.EqualTo("Expected 'HoomAttr', not 'HomeAttr' for 'controller' at url '/homeattr/index'.")); Assert.That(assertEngine.Messages[1], Is.EqualTo("Expected 'Mindex', not 'Index' for 'action' at url '/homeattr/index'.")); }
public void HasHomeRoute() { var expectedRoute = new { controller = "HomeAttr", action = "Index" }; RouteAssert.HasRoute(routes, "/homeattr/index", expectedRoute); }
public void HasRouteWithoutId() { var expectedRoute = new { controller = "GetPostAttr", action = "Index" }; RouteAssert.HasRoute(routes, "/getpostattr/index", expectedRoute); }
public void HasHomeRoute() { var expectedRoute = new { controller = "InlineConstraint", action = "Index" }; RouteAssert.HasRoute(routes, "/inlineconstraint/drawing", expectedRoute); }