Пример #1
0
        public void TestEliminarSeccionNull()
        {
            TestSetup             testSetup  = new TestSetup();
            FormulariosController controller = new FormulariosController();

            testSetup.SetupHttpContext(controller);

            var result = controller.EliminarSeccion(null, null);

            Assert.IsNull(result);
        }
Пример #2
0
        public void TestEliminarSeccionNoNull()
        {
            TestSetup testSetup     = new TestSetup();
            string    codFormulario = "TESTPSU";
            string    codSeccion    = "SECCPSU";


            FormulariosController controller = new FormulariosController();

            testSetup.SetupHttpContext(controller);

            var result = controller.EliminarSeccion(codFormulario, codSeccion);

            Assert.IsNotNull(result);
        }