Was it a socket that can be controlled by more than one switch? Or maybe an outlet where only one of the two sockets is controlled by a switch?
In general, you need a hot lead sensor or a voltage meter to check the wires regardless. There's a lot of good work out there, but there's also a...