Would she of known ?

I went to the doctor with what I thought was a kidney infection, she done a urine sample . Would she of known by the urine sample if I was pregnant ??

She looked for infection but she found protein in my kidneys . Would pregnancy have showed up if I was pregnant ???