Depends on what machine/engine we are talking about, standard practice is to remove the earth cut out wire to eliminate wire and switch, crank engine useing a suitable test plug, if it sparks its good, if it does not spark you need to either clean points if fitted, or replace electronic box
Husqvarna man
April 2010