public void GetTotalWinner_WithNetAsTotalWinner_ShouldGenerateWinnerString() { var searchResults = new List <SearchResult> { new SearchResult { Query = ".net", SearchClient = "Google", TotalResults = 50000 }, new SearchResult { Query = ".net", SearchClient = "MSN Search", TotalResults = 50000 }, new SearchResult { Query = "java", SearchClient = "Google", TotalResults = 3000 }, new SearchResult { Query = "java", SearchClient = "MSN Search", TotalResults = 5000 }, }; var results = _searchManager.GetTotalWinner(searchResults); results.Should().Be(".net"); }
public void GivenTotalWinner_WhenHealthSearchResults_ReturnsString() { var totalWinner = _searchManager.GetTotalWinner(_searchResults); Assert.IsType <string>(totalWinner); }