1990 trx 300 2wd

PLEASE could someone assist me in finding test info on Stator and Trigger so I can get my bike to spark. I have had the bike for 12 years and it is in good unmodified cond. I had this problem about 2 years ago. I have a trx 350 wreck thet runs so I swapper both cdi boxes then the coil with no joy. Then after a month or so turned it on and it started instantly. I swapped both cdi boxes back and it still ran fine until about 6 months ago. The bike started fine but reversing out of the shed it would stop seemingly when I turned the bars.Other times it would idle but as soon as I revved it it would stop, turn it off and start it again and instant start but wouldn’t let me rev it until it warmed up a bit and then it was perfect and now it has just lost all spark. I have swapped both boxes again, I have checked the entire loom and bought a new rectifier but still no spark. Next step will be stator and trigger but I have a feeling this is still not the answer. I am a good mechanic but a shitty sparkie so any good advice would be appreciated Thanks