Exemplo n.º 1
0
        public void HomeController_Index_ReturnsView()
        {
            HomeController controller = new HomeController();
            ActionResult result = controller.Index();

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
Exemplo n.º 2
0
        public void Privacy_ReturnsView()
        {
            var controller = new HomeController();
            ActionResult result = controller.Privacy();

            Assert.IsInstanceOf(typeof(ViewResult), result);
        }