public async Task GetsNewtonsoftJsonSearchResults() { var searchQuery = "https://api-v2v3search-0.nuget.org/query?q=newtonsoft"; var registrationurl = "https://api.nuget.org/v3/registration3/newtonsoft.json/index.json"; var result = await _target.GetSearchResultsAsync(searchQuery); Assert.True(result.TotalHits > 0); Assert.True(result.Data.Count > 0); Assert.Equal(registrationurl, result.Data[0].RegistrationUrl); Assert.Equal("Newtonsoft.Json", result.Data[0].Id); Assert.Equal(new NuGetVersion("12.0.2"), result.Data[0].Version); }