Fuel pump pumps fuel from fuel tank. Fuel solenoid(anti- afterfire) has a plunger that is energized when you turn ignition switch, causing plunger to pull away from main jet.
You can pull fuel pump hose going to carb and put hose in fuel tank or suitable container. Try to start fuel should come out of the hose.
The fuel solenoid can also be tested.
Inspecting The Anti-After Fire Solenoid | Mower & Small Engine Repair | Briggs & Stratton FAQ