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("*"));
        }
Exemplo n.º 2
0
		public void FixtureSetup()
		{
			m_wsManager = new PalasoWritingSystemManager();
			m_comparer = new TsStringComparer(m_wsManager.Create("en"));
			m_tssFact = TsStrFactoryClass.Create();
		}
Exemplo n.º 3
0
 public void FixtureSetup()
 {
     m_wsManager = new PalasoWritingSystemManager();
     m_comparer  = new TsStringComparer(m_wsManager.Create("en"));
     m_tssFact   = TsStrFactoryClass.Create();
 }