A switch just connects and disconnects - open closed - closed open.
With just two wires it will not matter how you connect them - one each side any way round.
It will probably be mains power in on the white wire - and nothing out on the brown - and then - when you operate the switch - mains in on the white and mains out on the brown.
Stay safe...
February 2015