public void PostProcessTest1() { ViePP target = new ViePP(); string text = "ưon"; string expected = "ươn"; string actual; actual = target.PostProcess(text); Assert.AreEqual(expected, actual); }
// ISO369-3 codes: http://www.sil.org/iso639-3/codes.asp public static IPostProcessor createProcessor(ISO639 code) { IPostProcessor processor; switch (code) { case ISO639.eng: processor = new EngPP(); break; case ISO639.vie: processor = new ViePP(); break; default: throw new Exception(code.ToString()); } return processor; }
// ISO369-3 codes: http://www.sil.org/iso639-3/codes.asp public static IPostProcessor createProcessor(ISO639 code) { IPostProcessor processor; switch (code) { case ISO639.eng: processor = new EngPP(); break; case ISO639.vie: processor = new ViePP(); break; default: throw new Exception(code.ToString()); } return(processor); }
public void PostProcessTest2() { ViePP target = new ViePP(); string text = "‘ê ‘ổ ‘ô"; string expected = "ề ‘ổ ồ"; string actual; actual = target.PostProcess(text); Assert.AreEqual(expected, actual); }