mvc3_temp.Controllers.HomeController.About C# (CSharp) Method

About() public method

public About ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult About()
        {
            return View();
        }

Usage Example

示例#1
0
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController();

            // Act
            ViewResult result = controller.About() as ViewResult;

            // Assert
            Assert.IsNotNull(result);
        }
HomeController