public void TestInstantiation(string testTransliteratorID) { Transliterator t = null; try { t = Transliterator.GetInstance(testTransliteratorID); } catch (ArgumentException ex) { Errln("FAIL: " + testTransliteratorID); throw ex; } if (t != null) { // Test toRules String rules = null; try { rules = t.ToRules(true); Transliterator.CreateFromRules("x", rules, Transliterator.Forward); } catch (ArgumentException ex2) { Errln("FAIL: " + "ID" + ".toRules() => bad rules: " + rules); throw ex2; } } }