Hopeful, you actually set the terms in your "contract" you make with your partner. Anything from "you get out" to "you get and and give up the house" Im not kidding.
Of course, me, I am not so rational. :o) Making a contract is pretty emotional for me. Of course it's one I hope to never need to enforce.