コード例 #1
0
        public void IndexNotNull()
        {
            AccionDeMejoraController accion = new AccionDeMejoraController();
            var indexResult = accion.Index();

            Assert.IsNotNull(indexResult);
        }
コード例 #2
0
        public void IndexName()
        {
            var accion      = new AccionDeMejoraController();
            var indexResult = accion.Index() as ViewResult;

            Assert.AreEqual("Index", indexResult.ViewName);
            accion.Dispose();
        }
コード例 #3
0
        public void TestMethod1()
        {
            HttpContext context = System.Web.HttpContext.Current;

            // Arrange
            var controller = new AccionDeMejoraController();

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

            // Assert
            Assert.IsNotNull(result);
        }