About() public method

public About ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
コード例 #1
0
        public void About()
        {
            var sut = new HomeController();
            var result = sut.About() as ViewResult;

            Assert.IsNotNull(result);
        }
コード例 #2
0
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController(new Subject());

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

            // Assert
            Assert.AreEqual("Your RRW -3 application description page.", result.ViewBag.Message);
        }
コード例 #3
0
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.IsNotNull(result);
        }