Switzerland 's sovereignty and neutrality have long been honored by the major European powers , and the country was not involved in either of the two world wars .