public void TestWithStressMark() { List <string> transtToCvtrTo = new List <string>(); transtToCvtrTo.Add("e"); TranscriptionChange extrans = new TranscriptionChange(); extrans.SetReplacementOptions(transtToCvtrTo); extrans.ReplaceWith = transtToCvtrTo[0]; extrans.WhatToReplace = "e\u02D0"; m_exTransList.Add(extrans); string text = m_exTransList.Convert("we\u02D0nop"); Assert.AreEqual("wenop", text); text = m_exTransList.Convert("we\u02D0\u02C8nop"); Assert.AreEqual("we\u02C8nop", text); }
public void WithExperimentalTrans2() { var trans = new TranscriptionChange(); trans.WhatToReplace = "x"; var replacementOptions = new List <string>(); replacementOptions.Add("y"); trans.SetReplacementOptions(replacementOptions); trans.ReplaceWith = "y"; _prj.AddTranscriptionChange(trans); m_cache.AddPhone("a"); m_cache.AddPhone("x"); m_cache.AddPhone("c"); m_cache.AddPhone("e"); Assert.AreEqual("VCVC", m_cache.GetCVPattern("axec", false)); }