Ejemplo n.º 1
0
        public void IndexActionRoute_ReturnsView()
        {
            RouteData routeData = RouteTestHelper.GetRouteData("~/Request/Index");

            Assert.IsNotNull(routeData, "The Request/Index route was null.");
            Assert.AreEqual("Request", routeData.Values["Controller"]);
            Assert.AreEqual("Index", routeData.Values["Action"]);
            Assert.IsEmpty(routeData.Values["id"].ToString());
        }
Ejemplo n.º 2
0
        public void SignOffActionRoute_ReturnsView()
        {
            RouteData routeData = RouteTestHelper.GetRouteData("~/Account/SignOff");

            Assert.IsNotNull(routeData, "The Account/SignOff route was null.");
            Assert.AreEqual("Account", routeData.Values["Controller"]);
            Assert.AreEqual("SignOff", routeData.Values["Action"]);
            Assert.IsEmpty(routeData.Values["id"].ToString());
        }
        public void EditActionRoute_ReturnsView()
        {
            RouteData routeData = RouteTestHelper.GetRouteData("~/Recipient/Edit");

            Assert.IsNotNull(routeData, "The Recipient/Edit route was null.");
            Assert.AreEqual("Recipient", routeData.Values["Controller"]);
            Assert.AreEqual("Edit", routeData.Values["Action"]);
            Assert.IsEmpty(routeData.Values["id"].ToString());
        }
Ejemplo n.º 4
0
        public void AddActionRoute_ReturnsView()
        {
            RouteData routeData = RouteTestHelper.GetRouteData("~/Computer/Add");

            Assert.IsNotNull(routeData, "The Computer/Add route was null.");
            Assert.AreEqual("Computer", routeData.Values["Controller"]);
            Assert.AreEqual("Add", routeData.Values["Action"]);
            Assert.IsEmpty(routeData.Values["id"].ToString());
        }
Ejemplo n.º 5
0
        public void PrivacyActionRoute_ReturnsView()
        {
            RouteData routeData = RouteTestHelper.GetRouteData("~/Home/Privacy");

            Assert.IsNotNull(routeData, "The Home/Privacy route was null.");
            Assert.AreEqual("Home", routeData.Values["Controller"]);
            Assert.AreEqual("Privacy", routeData.Values["Action"]);
            Assert.IsEmpty(routeData.Values["id"].ToString());
        }