That's a legal question and the answer in most countries is - they can't do that. From non-legal side - people don't have the same expectation from marriage and friendship.
And, no, this was not a legal question at all. Can you pinpoint what exactly makes the expectation of friendship and marriage different in this context? Assume both people have full-time jobs, both take care of children the same amount of time, etc.
No, I believe you're trolling at this point. I'll end here.
Looks like a solid definition of trolling...