Пример #1
0
        public string ExportLine(WordLibrary wl)
        {
            var sb = new StringBuilder();

            sb.Append(WubiHelper.GetStringWubi86Code(wl.Word));
            sb.Append(" ");
            sb.Append(wl.Word);

            return(sb.ToString());
        }
Пример #2
0
 public string GetCodeOfChar(char str)
 {
     return(WubiHelper.GetWubi86Code(str));
 }
Пример #3
0
 public IList <string> GetCodeOfString(string str)
 {
     return(new List <string> {
         WubiHelper.GetStringWubi86Code(str)
     });
 }
Пример #4
0
        public void PhraseConvertTest(string input, string code)
        {
            var codes = WubiHelper.ConvertPhraseAsSingleCode(input, OutputStyle.LowerCase);

            Assert.Equal(code, codes);
        }
Пример #5
0
        public void SingleCharacterConvertTest(char input, string code)
        {
            var codes = WubiHelper.ConvertSingleCharacter(input, false, OutputStyle.LowerCase);

            Assert.Equal(code, codes.FirstOrDefault());
        }