If you have a non-compete with Microsoft, and the terms of the non-compete say Washington law is to be used, and you take a job in California, and Microsoft sues inCalifornia, California's strong policy against non-competes will apply. Those parts of the Microsoft contract will be treated as void by the California court. Whatever remains will be interpreted using Washington law as construed by the California court.