My PC just turned off while I was on it as if the power was pulled. The green light is on, but hitting the power switch doesn't do anything. PSU, mobo, switch as possible failure?
Another way is to pull out you psu`s mobo connector and short the green and any black wire together with a paperclip etc. If the psu fan spins, you will know that at least your psu is working to some degree. However, this is not foolproof.