public void BeginPublicTimeline_ForAnonymousUser_ReturnsAtLeastOneTweet() { var wasCalled = false; var twitterClient = Substitute.For<IBaseTwitterClient>(); twitterClient.SetReponseBasedOnRequestPath(); var statuses = new Statuses(twitterClient); // assert GenericResponseDelegate endPublishTimeline = (a, b, c) => { wasCalled = true; var tweets = c as IEnumerable<Tweet>; Assert.That(tweets.Count(), Is.GreaterThan(0)); }; // act statuses.BeginPublicTimeline(endPublishTimeline); Assert.That(wasCalled, Errors.CallbackDidNotFire); }