예제 #1
0
        public void ProbarVistaPreviaSeccionValida()
        {
            SeccionController controller = new SeccionController();
            var result = controller.VistaPrevia("00000001") as ViewResult;

            Assert.IsNotNull(result);
        }
예제 #2
0
        public void ProbarVistaPreviaSeccionInvalida()
        {
            SeccionController controller = new SeccionController();
            var result = controller.VistaPrevia("NOEXISTE") as HttpNotFoundResult;

            Assert.IsNotNull(result);
        }
예제 #3
0
        public void ProbarVistaPreviaParametroNulo()
        {
            SeccionController controller = new SeccionController();
            var result = controller.VistaPrevia(null) as HttpStatusCodeResult;

            Assert.IsNotNull(result);
        }