Esempio n. 1
0
        public void countTest()
        {
            trendingList list = new trendingList();

            trendingList.Trendings.Clear();
            string testVar         = "Test string";
            string mixedStringTest = "123456ABCDEF_%^";

            list.add(mixedStringTest);
            list.add(testVar);
            Assert.AreEqual(list.count(), 2);
        }
Esempio n. 2
0
        public void tweetDisplay(message asset, trendingList trending, mentionsList mentions)
        {
            //if listbox needs refreshing, do so
            if (lstTrending.HasItems)
            {
                lstTrending.Items.Clear();
            }
            //then add new list to it
            for (int i = 0; i < trending.count(); i++)
            {
                lstSIR.Items.Add(trending.returnValue(i));
            }

            if (lstMentions.HasItems)
            {
                lstMentions.Items.Clear();
            }
            for (int i = 0; i < mentions.count(); i++)
            {
                lstMentions.Items.Add(mentions.returnValue(i));
            }
        }