Пример #1
0
        public void InstallPUACharacters()
        {
            // Use ICU to check out existing/nonexisting character properties.
            VerifyNonexistentChars();
            Assert.IsTrue(Icu.IsCustomUse("E000"));
            Assert.IsTrue(Icu.IsCustomUse("E001"));
            Assert.IsFalse(Icu.IsCustomUse(kChar3S));
            Assert.IsFalse(Icu.IsCustomUse("DDDDD"));
            Assert.IsTrue(Icu.IsPrivateUse("E000"));
            Assert.IsTrue(Icu.IsPrivateUse("E001"));
            Assert.IsFalse(Icu.IsPrivateUse(kChar3S));
            Assert.IsFalse(Icu.IsPrivateUse("DDDDD"));
            Assert.IsTrue(Icu.IsValidCodepoint("E000"));
            Assert.IsTrue(Icu.IsValidCodepoint("E001"));
            Assert.IsTrue(Icu.IsValidCodepoint(kChar3S));
            Assert.IsTrue(Icu.IsValidCodepoint("DDDDD"));

            // Create our own CustomChars.xml file with test data in it, and install it.
            CreateAndInstallOurCustomChars(m_sCustomCharsFile);

            // Use ICU to check out the newly installed character properties.
            VerifyNewlyCreatedChars();
        }