示例#1
0
        public void UpdateCountersWithNoStatsTest()
        {
            MyTwitter twitter = new MyTwitter(MyTwitter.consumerKeyMock, MyTwitter.consumerSecretMock, MyTwitter.accessTokenMock, MyTwitter.accessTokenSecretMock);

            twitter.UpdateCounters();
            Assert.True(twitter.Retweets == 0);
            Assert.True(twitter.Mentions == 0);
            Assert.True(twitter.FollowRequests == 0);
        }
示例#2
0
        public void UpdateCountersWithStatsTest()
        {
            MyTwitter twitter = new MyTwitter(MyTwitter.consumerKey2, MyTwitter.consumerSecret2, MyTwitter.accessToken2, MyTwitter.accessTokenSecret2);

            twitter.UpdateCounters();
            Assert.True(twitter.Retweets > 0);
            Assert.True(twitter.Mentions > 0);
            Assert.True(twitter.FollowRequests > 0);
        }
示例#3
0
 private void DashboardRefreshTimer_Tick(object sender, EventArgs e)
 {
     if (sender == DashboardRefreshTimer)
     {
         // label1.Text = DateTime.Now.ToLongTimeString();
         mytwitter.UpdateCounters();
         // mytwitter.GetRetweetsSinceLastTweet();
         Display();
     }
 }