Ceiling Fan and Light stop working
This kind of tester will tell if the wire is hot. A bad return path (white wire) could be the cause. Also the lamp can be bad, but you said both quit so I would check to see if the neutral wiggled loose.