Example #1
0
        public void HomeController_Index_ReturnsView()
        {
            HomeController controller = new HomeController();
            ActionResult result = controller.Index();

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

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