Ejemplo n.º 1
0
        public void M13_DAOTestAgregar()
        {
            Rol rol = new Rol();

            rol._nombreRol = nombreRol;
            //Caso de exito
            int resultadoAgregar = daoRol.Agregar(rol);

            Assert.AreEqual(resultadoAgregar, 1);
            //Caso de fallo
            Assert.Throws <ReservaExceptionM13>(() => daoRol.Agregar(null));
            //Caso de fallo
            Assert.Throws <ReservaExceptionM13>(() => daoRol.Agregar(rol));
        }