示例#1
0
 public void TranslateTest()
 {
     JawiTranslator target = new JawiTranslator();
     string rumi = "ahmad";
     string expected = "احمد";
     string actual = target.Translate(rumi);
     Assert.AreEqual(expected, actual);
 }
示例#2
0
 protected void txtName_TextChanged(object sender, EventArgs e)
 {
     System.Diagnostics.Debug.WriteLine("txtName_TextChanged");
     JawiTranslator translator = new JawiTranslator();
     txtJawi.Text = translator.Translate(txtName.Text.Trim());
 }