BoxKite.Twitter.Tests.TweetExtensionsTests.Create_And_Send_Tweet_with_location C# (CSharp) Method

Create_And_Send_Tweet_with_location() private method

private Create_And_Send_Tweet_with_location ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task Create_And_Send_Tweet_with_location()
        {
            // arrange
            session.Returns(await Json.FromFile("data\\tweets\\singletweetwithgeotag.txt"));
            session.ExpectPost("https://api.twitter.com/1.1/statuses/update.json");

            var singletweet = await session.SendTweet("Maybe he'll finally find his keys. #peterfalk", 37.7821120598956, -122.400612831116);

            Assert.IsNotNull(singletweet);
            Assert.IsTrue(singletweet.Entities.Hashtags.ToList()[0].Text == "peterfalk");
            Assert.IsTrue(singletweet.Id == 243145735212777472);
            singletweet.Location.Coordinates.Count().ShouldBeEquivalentTo(2);
        }