Exemple #1
0
 public void OnSearchChanged(string inFlightQuery)
 {
     if (!inFlightQuery.Equals(CurrentQuery))
     {
         CurrentQuery = inFlightQuery;
         m_QueryDictionary.Query(CurrentQuery);
         m_ResultsListBox.ItemsSource = m_QueryDictionary.Find(CurrentQuery);
     }
 }
Exemple #2
0
        public void TestAdd()
        {
            m_QueryDictionary.Query("", true);
            Assert.IsTrue(m_QueryDictionary.Find("").Count == 0);

            m_QueryDictionary.Query("adder", true);
            m_QueryDictionary.Query("adder", true);

            Assert.IsTrue(m_QueryDictionary.Find("adder").Count == 1);
            Assert.IsTrue(m_QueryDictionary.Find("adder ").Count == 1);
        }