Miscarriage last week

Polly

I believe I had a miscarriage over a week ago and only just seeing a doctor now about it. How will they test for if it was a miscarriage? I didn’t know I was pregnant