They were lucky to not get invaded by the Germans but they totally expected to be invaded and built a defense strategy based on this belief that lasted until the 1990s.
Twice the Germans started the process of putting together a Swiss invasion and gave up early because they realized they would have lost.
Twice the Germans started the process of putting together a Swiss invasion and gave up early because they realized they would have lost.