Пример #1
0
        public void GetNameByPinyin5()
        {
            var hanzi = Pinyin4Name.GetHanzi("fe", false);

            assertArrayAreEquals(new[] { "费", "丰", "封", "酆", "冯", "凤" }, hanzi);
        }
Пример #2
0
        public void GetNameByPinyin4()
        {
            var hanzi = Pinyin4Name.GetHanzi("f", false);

            assertArrayAreEquals(new[] { "樊", "范", "方", "房", "费", "丰", "封", "酆", "冯", "凤", "伏", "扶", "福", "符", "傅", "富" }, hanzi);
        }
Пример #3
0
        public void GetNameByPinyin2()
        {
            var hanzi = Pinyin4Name.GetHanzi("chan yu", true);

            assertArrayAreEquals(new[] { "单于" }, hanzi);
        }
Пример #4
0
        public void GetNameByPinyin3()
        {
            var hanzi = Pinyin4Name.GetHanzi("ou", false);

            assertArrayAreEquals(new[] { "欧阳", "欧" }, hanzi);
        }
Пример #5
0
        public void GetNameByPinyin1()
        {
            var hanzi = Pinyin4Name.GetHanzi("li", true);

            assertArrayAreEquals(new[] { "黎", "李", "利", "厉", "郦" }, hanzi);
        }