About() public method

public About ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
Ejemplo n.º 1
0
        public void Should_return_a_view_for_the_about()
        {
            var controller = new HomeController(MockRepository.GenerateMock<ISharedSettings>());

            var result = controller.About();

            Assert.IsInstanceOfType(typeof (ViewResult), result);
        }
Ejemplo n.º 2
0
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.IsNotNull(result);
        }
Ejemplo n.º 3
0
        public void About()
        {
            // Disponer
            HomeController controller = new HomeController();

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

            // Declarar
            Assert.IsNotNull(result);
        }
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.AreEqual("Your application description page.", result.ViewBag.Message);
        }
        public void About()
        {
            // Arrange
            HomeController controller = new HomeController();

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

            // Assert
            Assert.AreEqual("Could not find anything to write into the About page.", result.ViewBag.Message);
        }