It's going to come down to who the court believes, and whether there are any written agreements that contradict the claim.

When unmarried people buy a home together, they should enter into a written contract detailing their rights and responsibilities in relation to the purchase, use, maintenance, possible break-up, division of proceeds of sale, and what happens if one person wants to sell and the other does not.