예제 #1
0
        public async Task GetsNewtonsoftJsonAutocompleteResults()
        {
            var query = "https://api-v2v3search-0.nuget.org/autocomplete?q=newt";

            var result = await _target.GetAutocompleteResultsAsync(query);

            Assert.True(result.TotalHits > 0);
            Assert.True(result.Data.Count > 0);
            Assert.Contains(result.Data, id => id == "Newtonsoft.Json");
        }