常用方法
常用方法
常用方法
常用方法
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)); }