How to test a switch

This a picture of the resistor and the switch. I have 2 of each and haven't cleaned these.
Thanks

1529590451991628405699.jpg