Пример #1
0
        public void TestGetUnicodeCharFromHexSequence()
        {
            char[] c1 = new char[] { '0', '0', '3', '5' };
            char   u1 = UnicodeUtil.GetUnicodeCharFromHexSequence(c1);

            System.Diagnostics.Debug.WriteLine("u1 = " + u1);
            Assert.AreEqual('5', u1);

            char[] c2 = new char[] { '0', '0', '5', 'd' };
            char   u2 = UnicodeUtil.GetUnicodeCharFromHexSequence(c2);

            System.Diagnostics.Debug.WriteLine("u2 = " + u2);
            Assert.AreEqual(']', u2);
        }