public void TestEliminarSeccionNull() { TestSetup testSetup = new TestSetup(); FormulariosController controller = new FormulariosController(); testSetup.SetupHttpContext(controller); var result = controller.EliminarSeccion(null, null); Assert.IsNull(result); }
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); }