private void CheckRanking(string keywords, int expectedLowestRank, CodeSearchResult methodSearchResult)
 {
     var rank = _results.IndexOf(methodSearchResult) + 1;
     Assert.IsTrue(rank <= expectedLowestRank,
                   "Searching for " + keywords + " doesn't return a result in the top " + expectedLowestRank + "; rank=" +
                   rank);
 }
        public CodeSearchResultWrapper(CodeSearchResult codeSearchResult)
        {
            this.CodeSearchResult = codeSearchResult;

            this.SearchResultOpenFileCommand = new RelayCommand(SearchResultOpenFile);
        }