Trim off the woody ends of the asparagus and cut each spear into 2-inch-long (5 cm) pieces.
Heat the oil and garlic in a medium skillet over medium heat. Add the asparagus and cook for 1 minute. Add the mushroom slices and cook for a few more minutes, until the vegetables are tender. Season with the salt and pepper.