예제 #1
0
        public void FirstOfMultiPinyinName()
        {
            var pinyin = Pinyin4Name.GetFirstLetter("单于");

            Assert.AreEqual("c y", pinyin);
        }
예제 #2
0
        public void NonExistsName()
        {
            var pinyin = Pinyin4Name.GetFirstLetter("佳");

            Assert.IsNull(pinyin);
        }
예제 #3
0
        public void FirstLetterOfName()
        {
            var pinyin = Pinyin4Name.GetFirstLetter("李");

            Assert.AreEqual("l", pinyin);
        }