Example #1
0
        public void GetNextTwentyTweetsFromUserIdShouldReturnObservableContainerThatContainsInvalidTwitterID()
        {
            var tv = new TwitterViewModel();

            tv.UpdateTweets("____INVALID");

            Assert.IsTrue(tv.Tweets.First().text == "Invalid TwitterID.");
        }
Example #2
0
        public void ShouldGetNextTwentyTweetsFromUserId()
        {
            var tv = new TwitterViewModel();

            tv.UpdateTweets("RealTimeWWII");

            Assert.IsTrue(tv.Tweets.Count == 20);
        }
Example #3
0
        public void UpdateTweetsShouldCallTwitterServiceToGetNextTwentyTweets()
        {
            _tvm.UpdateTweets("RealTimeWWII");

            _mock.AssertWasCalled(s => s.GetNextTwentyTweetsFromUserId("RealTimeWWII"));
        }