Momentary switch hookup

Jun 10, 2018
3
0
10
I cannibalized a power button from one of my old computers and i plan on using it on a raspberry pi.

In the process of removing the momentary switch the power and ground cables became disconnected from the switch.

Is there any way to test the switch to figure out what goes where? Does it matter?