Esempio n. 1
0
        public void BuildTwitterFeed_SingleTweet_Should_Return_UsersWithTweets()
        {
            var users        = _BuildUsersForSingleTweet();
            var tweetMessage = "ETH is the future";

            //build twitter feed
            _sut.BuildTwitterFeed(_tweetFileSingleLine, users);

            //assert that tweet was added to both users
            foreach (var userKey in users.Keys)
            {
                users[userKey].Tweets.Should().NotBeEmpty();
                users[userKey].Tweets.First().Message.Should().BeEquivalentTo(tweetMessage, "because this was what the user tweeted");
            }
        }