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); }
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); }
private void DashboardRefreshTimer_Tick(object sender, EventArgs e) { if (sender == DashboardRefreshTimer) { // label1.Text = DateTime.Now.ToLongTimeString(); mytwitter.UpdateCounters(); // mytwitter.GetRetweetsSinceLastTweet(); Display(); } }