public final void assertIllegalTypeDetected(String prefix, String suffix) throws Exception {
for (TestType testType : TEST_TYPES) {
compile(prefix + CharEscapers.xmlEscaper().escape(testType.getType()) + suffix);
SourcePosition errorPos = pos(2, 1);
for (OutputLanguage outputLanguage : testType.getIllegalIn()) {
assertAlert(new IllegalTypeError(errorPos, outputLanguage.getDisplay(), testType.getType()));
}
assertNoUnexpectedAlerts();
}
}