public void TestCharCount() { UChar.CharCount(-1); UChar.CharCount(UChar.MaxCodePoint + 1); if (UChar.CharCount(UChar.MinSupplementaryCodePoint - 1) != 1) { Errln("0xffff"); } if (UChar.CharCount(UChar.MinSupplementaryCodePoint) != 2) { Errln("0x010000"); } }