To check that certain diagnostics are raised.
To check that certain diagnostics are raised.