public void GivenTheUserHasMadeTheFollowingTweets(string userName, Table tweets) { _twitter .Stub( twitter => twitter.Search(Arg <string> .Matches(s => Regex.IsMatch(s, string.Format("\\b{0}\\b", userName))))) .Return(tweets.Rows.Select(row => new Tweet { Text = row["Text"], TweetedAt = DateTime.Parse(row["At"]), User = userName })); }