예제 #1
0
        public void TwitterService_GetTweets_Returns_Values_NEEDS_AUTHENTICATION()
        {
            ITwitterService twitter = new TwitterService(this.GetCredentials());
            List<Tweet> tweets = twitter.GetTweets().ToList();

            foreach (Tweet item in tweets)
            {
                Assert.AreNotEqual(0, item.Id);
                Assert.AreNotEqual(DateTime.MinValue, item.CreatedOn);
                Assert.AreNotEqual("", item.Message);
                Assert.AreNotEqual("", item.User);
            }
        }