I had a beagle (Dexter) who would lower his head , start yipping, and run through an underground fence although he was wearing a shock collar set on "high." And yes, the shock collar did work, which I proved to myself with some discomfort, and the contacts were touching Dexter's neck. Needless to say, when he returned (after a considerable run) he would wait outside the invisible fence until it was turned off and someone escorted him back inside.
In the race of technology vs. beagle the outcome remains in doubt.