GetEmitOutput And Testfiles

Why do you need to check. If there are errors in the diagnostics they are going to be emit errors