public void InitializeFromXml_NumericElementClosedTooEarly() { var ws = m_wsManager.Create("en-US"); ws.ValidChars = ksXmlHeader + "<ValidCharacters><WordForming>e\uFFFCf\uFFFCg\uFFFCh</WordForming>" + "<Numeric/>4\uFFFC5" + "<Other>,\uFFFC!\uFFFC*</Other>" + "</ValidCharacters>"; var validChars = ValidCharacters.Load(ws, null); ValidCharsWrapper validCharsW = new ValidCharsWrapper(validChars); Assert.AreEqual(4, validCharsW.WordFormingCharacters.Count); Assert.IsTrue(validCharsW.WordFormingCharacters.Contains("e")); Assert.IsTrue(validCharsW.WordFormingCharacters.Contains("f")); Assert.IsTrue(validCharsW.WordFormingCharacters.Contains("g")); Assert.IsTrue(validCharsW.WordFormingCharacters.Contains("h")); Assert.AreEqual(0, validCharsW.NumericCharacters.Count); Assert.AreEqual(3, validCharsW.OtherCharacters.Count); Assert.IsTrue(validCharsW.OtherCharacters.Contains(",")); Assert.IsTrue(validCharsW.OtherCharacters.Contains("!")); Assert.IsTrue(validCharsW.OtherCharacters.Contains("*")); }
public void FixtureSetup() { m_wsManager = new PalasoWritingSystemManager(); m_comparer = new TsStringComparer(m_wsManager.Create("en")); m_tssFact = TsStrFactoryClass.Create(); }
public void FixtureSetup() { m_wsManager = new PalasoWritingSystemManager(); m_comparer = new TsStringComparer(m_wsManager.Create("en")); m_tssFact = TsStrFactoryClass.Create(); }