Пример #1
0
        public void TestFindIDs()
        {
            m_QueryDictionary.Query("Mein tera", true);
            m_QueryDictionary.Query("Bewajah sehta mein raha", true);
            m_QueryDictionary.Query("Kuch bhi", true);
            m_QueryDictionary.Query("Bewajah kehta mein raha", true);
            m_QueryDictionary.Query("oo oh oh yuh hin sehta raha", true);

            List <long> results = m_QueryDictionary.FindQueryIds("mei");

            Assert.IsTrue(results.Count == 3);
            Assert.IsTrue(results[0] == 0);
            Assert.IsTrue(results[1] == 1);
            Assert.IsTrue(results[2] == 3);
        }