Coronavirus testing

Sydney

I’m scheduled for a C-Section next Thursday and my hospital just called saying I would be required to come in on Tuesday and take a coronavirus test and had to self isolate from Tuesday to Thursday. Anyone else had to take a test? What’s happens if the test comes back positive?