BoxKite.Twitter.Tests.TrendsExtensionsTests.Get_Trends_By_LatLong C# (CSharp) Метод

Get_Trends_By_LatLong() приватный Метод

private Get_Trends_By_LatLong ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task
        public async Task Get_Trends_By_LatLong()
        {
            // arrange
            session.Returns(await Json.FromFile("data\\trends\\trendsbygeo.txt"));
            session.ExpectGet("https://api.twitter.com/1.1/trends/closest.json");

            var placetrends = await session.GetTrendsByLocation(0.0,0.0);

            Assert.IsNotNull(placetrends);
            placetrends.Count().ShouldBeEquivalentTo(1);
            placetrends.ToList()[0].Name.ShouldBeEquivalentTo("Australia");
        }