This unit test case method tests handle text with heading and tailing empty lines.
This unit test case method tests expand three letters .
This unit test case includes following focal methods:
(1) var queries = expander.GetExpandedQueries("abc");(@line 32)
This focal method is related to assertions at line 33, line 34
(2) queries = expander.GetExpandedQueries("bcd");(@line 35)
This focal method is related to assertions at line 36, line 37
(3) queries = expander.GetExpandedQueries("def");(@line 38)
This focal method is related to assertions at line 39, line 40
This unit test case validates that:
(1) queries is not null.
(2) queries.Any() is true.
(3) queries is not null.
(4) queries.Any() is true.
(5) queries is not null.
(6) queries.Any() is true.
This unit test case method tests expand two letters .
This unit test case includes following focal methods:
(1) var queries = expander.GetExpandedQueries("ab");(@line 46)
This focal method is related to assertions at line 47
(2) queries = expander.GetExpandedQueries("em");(@line 48)
This focal method is related to assertions at line 49
This unit test case validates that:
(1) queries.Any() is true.
(2) queries.Any() is true.
This unit test case method tests expand more letters .
This unit test case includes following focal methods:
(1) var queries = expander.GetExpandedQueries("abfdsafdsafdc");(@line 55)
This focal method is related to assertions at line 56
(2) queries = expander.GetExpandedQueries("bcfdasfdsad");(@line 57)
This focal method is related to assertions at line 58
(3) queries = expander.GetExpandedQueries("defdasfdsaf");(@line 59)
This focal method is related to assertions at line 60
This unit test case validates that:
(1) queries is not null.
(2) queries is not null.
(3) queries is not null.
This unit test case method tests handle same local dictionary word pair always exist .
This unit test case method tests handle same non local dictionary word never exist .
This unit test case method tests handle different word pairs that does not exist .
This unit test case method tests assert can get words and count .
This unit test case validates that:
(1) dic is not null.
(2) dic.Any() is true.
This unit test case method tests reform word without context.
This unit test case validates that:
(1) ! GetReformedWord("",new).Any() is true.
(2) ! GetReformedWord("sando",new string).Any() is true.
(3) ! GetReformedWord("abb",new string).Any() is true.
This unit test case method tests add words several times .
This unit test case includes following focal methods:
(1) var count = matrix.GetCoOccurrenceCount(word1,word2);(@line 47)
This focal method is related to assertions at line 48
This unit test case validates that:
(1) count > 0 is true.
   count is obtained from
   1) variable listLength through slicing path
   2) variable i through slicing path
   3) variable listLength through slicing path
   4) variable i through slicing path.
This unit test case method tests confirm assumption about string comparisons .
This unit test case validates that:
(1) "abc".CompareTo("") > 0 is true.
(2) "a".CompareTo("") > 0 is true.
(3) "zzzzzzzz".CompareTo("") > 0 is true.
This unit test case method tests query words does not depend on order.
This unit test case includes following focal methods:
(1) An assertion in line 64 validating that matrix.GetCoOccurrenceCount("word1","word2") == 1 is true.
(2) An assertion in line 65 validating that matrix.GetCoOccurrenceCount("word2","word1") == 1 is true.
This unit test case method tests handle performance test .
This unit test case validates that:
(1) time < 1000 is true.
   time is obtained from
   1) variable stopwatch through slicing path.
This unit test case method tests handle not reforming word whose stemming is in dictionary .
This unit test case method tests handle make sure leaving quoted term untouched .
This unit test case method tests term change type test for non word.
This unit test case includes following focal methods:
(1) var newQueries = reformer.ReformTermsSynchronously(new string);(@line 149)
This focal method is related to assertions at line 157, line 158, line 159
This unit test case validates that:
(1) q1.Any() is true.
(2) ! q2.Any() is true.
(3) ! q3.Any() is true.
This unit test case method tests term change type test for word existing in local dictionary.
This unit test case includes following focal methods:
(1) var newQueries = reformer.ReformTermsSynchronously(new string);(@line 167)
This focal method is related to assertions at line 176, line 177, line 178
This unit test case validates that:
(1) ! q1.Any() is true.
(2) ! q2.Any() is true.
(3) ! q3.Any() is true.
This unit test case method tests term change type test for word not existing in local dictionary.
This unit test case includes following focal methods:
(1) var newQueries = reformer.ReformTermsSynchronously(new string);(@line 185)
This focal method is related to assertions at line 193, line 194, line 195, line 198
This unit test case validates that:
(1) q1.Any() is true.
(2) q2.Any() is true.
(3) ! q3.Any() is true.
(4) ! word1.Equals(word2) is true.
This unit test case method tests term change type for terms in general english dictionary.
This unit test case includes following focal methods:
(1) var newQueries = reformer.ReformTermsSynchronously(new string);(@line 205)
This focal method is related to assertions at line 213, line 214, line 215
This unit test case validates that:
(1) q1.Any() is true.
(2) ! q2.Any() is true.
(3) q3.Any() is true.
This unit test case method tests handle testing terms that never occur together are filtered .
This unit test case method tests query popolar words .
This unit test case includes following focal methods:
(1) An assertion in line 25 validating that thesaurus.GetSynonyms("red").Any() is true.
(2) An assertion in line 26 validating that thesaurus.GetSynonyms("black").Any() is true.
(3) An assertion in line 27 validating that thesaurus.GetSynonyms("peach").Any() is true.
(4) An assertion in line 28 validating that thesaurus.GetSynonyms("house").Any() is true.
(5) An assertion in line 29 validating that thesaurus.GetSynonyms("dictionary").Any() is true.
(6) An assertion in line 30 validating that thesaurus.GetSynonyms("need").Any() is true.
(7) An assertion in line 31 validating that thesaurus.GetSynonyms("sand").Any() is true.
(8) An assertion in line 32 validating that thesaurus.GetSynonyms("monkey").Any() is true.
This unit test case method tests query wired words .
This unit test case includes following focal methods:
(1) An assertion in line 38 validating that thesaurus.GetSynonyms("obama").Any() is false.
(2) An assertion in line 39 validating that thesaurus.GetSynonyms("georgewbush").Any() is false.
(3) An assertion in line 40 validating that thesaurus.GetSynonyms("philly").Any() is false.
(4) An assertion in line 41 validating that thesaurus.GetSynonyms("fdaf").Any() is false.
(5) An assertion in line 42 validating that thesaurus.GetSynonyms("verylongwords").Any() is false.
(6) An assertion in line 43 validating that thesaurus.GetSynonyms("???").Any() is false.
(7) An assertion in line 44 validating that thesaurus.GetSynonyms("7455489735").Any() is false.
(8) An assertion in line 45 validating that thesaurus.GetSynonyms(" ").Any() is false.
This unit test case method tests get synonyms correctly .
This unit test case includes following focal methods:
(1) An assertion in line 51 validating that thesaurus.GetSynonyms("see").Select().Contains("watch") is true.
(2) An assertion in line 52 validating that thesaurus.GetSynonyms("get").Select().Contains("have") is true.
(3) An assertion in line 53 validating that thesaurus.GetSynonyms("however").Select().Contains("nevertheless") is true.
(4) An assertion in line 54 validating that thesaurus.GetSynonyms("however").Select().Contains("withal") is true.
(5) An assertion in line 55 validating that thesaurus.GetSynonyms("however").Select().Contains("still") is true.
(6) An assertion in line 56 validating that thesaurus.GetSynonyms("however").Count() == 8 is true.
This unit test case method tests performance of matrix.
This unit test case validates that:
(1) stopwatch.ElapsedMilliseconds < 500 is true.
This unit test case method tests get stemmed word .
This unit test case validates that:
(1) stemmedWord.Equals("ad") is true.
   stemmedWord is obtained from
   1) variable word through slicing path.
(2) stemmedWord.Equals("add") is true.
   stemmedWord is obtained from
   1) variable word through slicing path.
This unit test case method tests make sure can not add short words .
This unit test case includes following focal methods:
(1) An assertion in line 57 validating that ! _dictionaryBasedSplitter.DoesWordExist(word,DictionaryOption.NoStemming) is true.
This unit test case method tests add several words .
This unit test case validates that:
(1) this._dictionaryBasedSplitter.DoesWordExist(word,DictionaryOption.NoStemming) is true.
This unit test case method tests add many words .
This unit test case validates that:
(1) this._dictionaryBasedSplitter.DoesWordExist(word,DictionaryOption.NoStemming) is true.
This unit test case method tests split performance test .
This unit test case validates that:
(1) time < 20 is true.
   time is obtained from
   1) variable watch through slicing path.
(2) subWords.Count() == 2 is true.
   subWords is obtained from
   1) variable words through slicing path.
This unit test case method tests update project names and reload old ones .
This unit test case includes following focal methods:
(1) An assertion in line 135 validating that _dictionaryBasedSplitter.DoesWordExist(word,DictionaryOption.NoStemming) is true.
This unit test case method tests split simple word .
This unit test case includes following focal methods:
(1) var subWords = _dictionaryBasedSplitter.ExtractWords("inti");(@line 145)
This focal method is related to assertions at line 146, line 147
This unit test case validates that:
(1) subWords[0].Equals("int") is true.
(2) subWords[1].Equals("i") is true.
This unit test case method tests split half splittable word .
This unit test case includes following focal methods:
(1) var subWords = _dictionaryBasedSplitter.ExtractWords(sb.ToString());(@line 179)
This focal method is related to assertions at line 180, line 181, line 182
This unit test case validates that:
(1) subWords.Count() >= 3 is true.
   subWords is obtained from
   1) variable sb through slicing path.
(2) subWords.First().Equals(prefixes.ElementAt(i)) is true.
   subWords is obtained from
   1) variable sb through slicing path.
(3) subWords.Last().Equals(suffixes.ElementAt(i)) is true.
   subWords is obtained from
   1) variable sb through slicing path.
This unit test case method tests split simple quote .
This unit test case includes following focal methods:
(1) var words = _dictionaryBasedSplitter.ExtractWords(quote);(@line 191)
This focal method is related to assertions at line 192, line 193
This unit test case validates that:
(1) words.Count() == 1 is true.
   words is obtained from
   1) variable quote through slicing path.
(2) words.ElementAt(0).Equals(quote) is true.
   words is obtained from
   1) variable quote through slicing path.
This unit test case method tests split quote with non quote.
This unit test case includes following focal methods:
(1) var words = _dictionaryBasedSplitter.ExtractWords(mix1);(@line 207)
This focal method is related to assertions at line 208, line 209, line 210, line 211
(2) words = _dictionaryBasedSplitter.ExtractWords(mix2);(@line 213)
This focal method is related to assertions at line 214, line 215, line 216, line 217
(3) words = _dictionaryBasedSplitter.ExtractWords(mix3);(@line 219)
This focal method is related to assertions at line 220, line 221, line 222, line 223, line 224, line 225
(4) words = _dictionaryBasedSplitter.ExtractWords(mix4);(@line 227)
This focal method is related to assertions at line 228
This unit test case validates that:
(1) words.Count() == 3 is true.
   words is obtained from
   1) variable quote through slicing path
   2) variable nonQuote through slicing path.
(2) words.ElementAt(0).Equals("\"inti\"") is true.
   words is obtained from
   1) variable quote through slicing path
   2) variable nonQuote through slicing path.
(3) words.ElementAt(1).Equals("int") is true.
   words is obtained from
   1) variable quote through slicing path
   2) variable nonQuote through slicing path.
(4) words.ElementAt(2).Equals("i") is true.
   words is obtained from
   1) variable quote through slicing path
   2) variable nonQuote through slicing path.
(5) words.Count() == 3 is true.
(6) words.ElementAt(0).Equals("int") is true.
(7) words.ElementAt(1).Equals("i") is true.
(8) words.ElementAt(2).Equals("\"inti\"") is true.
(9) words.Count() == 5 is true.
(10) words.ElementAt(0).Equals("int") is true.
(11) words.ElementAt(1).Equals("i") is true.
(12) words.ElementAt(2).Equals("\"inti\"") is true.
(13) words.ElementAt(3).Equals("int") is true.
(14) words.ElementAt(4).Equals("i") is true.
(15) words.Count() == 1 is true.
This unit test case method tests split quote inside quote .
This unit test case includes following focal methods:
(1) var words = _dictionaryBasedSplitter.ExtractWords(keywords);(@line 236)
This focal method is related to assertions at line 237
This unit test case validates that:
(1) words.Count() == 1 is true.
   words is obtained from
   1) variable keywords through slicing path.
This unit test case method tests split empty quote .
This unit test case includes following focal methods:
(1) var words = _dictionaryBasedSplitter.ExtractWords(quote);(@line 244)
This focal method is related to assertions at line 245, line 246
This unit test case validates that:
(1) words.Count() == 1 is true.
   words is obtained from
   1) variable quote through slicing path.
(2) words.ElementAt(0).Equals(quote) is true.
   words is obtained from
   1) variable quote through slicing path.
This unit test case method tests handle given query parser when parse is called and query is null or empty string or contains white space only than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(null);(@line 14)
This focal method is related to assertions at line 16
This unit test case validates that:
(1) sandoQueryDescription.IsValid is false.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path.
This unit test case method tests handle given query parser when parse is called and query is location string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 24)
This focal method is related to assertions at line 26
(2) An assertion in line 27 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests handle given query parser when parse is called and query is literal string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 35)
This focal method is related to assertions at line 37
(2) An assertion in line 38 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests parse file h .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse("open file:h");(@line 45)
This focal method is related to assertions at line 47, line 48
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path.
(2) sandoQueryDescription.SearchTerms.Count == 1 is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path.
This unit test case method tests parse query parser tests with negation.
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse("reorder search results -test");(@line 56)
This focal method is related to assertions at line 58, line 59
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path.
(2) sandoQueryDescription.SearchTerms.Count == 4 is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path.
This unit test case method tests handle given query parser when parse is called and query is file extension string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 68)
This focal method is related to assertions at line 70
(2) An assertion in line 71 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests handle given query parser when parse is called and query is program element type string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 79)
This focal method is related to assertions at line 81
(2) An assertion in line 82 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests handle given query parser when parse is called and query is access level string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 90)
This focal method is related to assertions at line 92
(2) An assertion in line 93 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests handle given query parser when parse is called and query is normal string than valid query description is returned .
This unit test case includes following focal methods:
(1) var sandoQueryDescription = sandoQueryParser.Parse(query);(@line 101)
This focal method is related to assertions at line 103
(2) An assertion in line 104 validating that sandoQueryDescription.ToString() is equal to expectedQueryDescription.
This unit test case validates that:
(1) sandoQueryDescription.IsValid is true.
   sandoQueryDescription is obtained from
   1) variable sandoQueryParser through slicing path
   2) variable query through slicing path.
This unit test case method tests multi queries .
This unit test case includes following focal methods:
(1) An assertion in line 38 validating that history.GetSearchHistoryItems().Any() is true.
This unit test case method tests ensure queries saved correctly .
This unit test case validates that:
(1) queries.All() is true.
This unit test case method tests ensure time saved correctly .
This unit test case includes following focal methods:
(1) var entry = history.GetSearchHistoryItems().First();(@line 88)
This focal method is related to assertions at line 89
This unit test case validates that:
(1) entry.TimeStamp < now is true.
(2) now - entry.TimeStamp < 1 * 1000 * 10000 is true.
This unit test case method tests add multiple words .
This unit test case includes following focal methods:
(1) An assertion in line 25 validating that matrix.GetCoOccurrenceCount(word1,word2) > 0 is true.
(2) An assertion in line 32 validating that matrix.GetCoOccurrenceCount(word1,word2) == 0 is true.
This unit test case method tests add multiple words multiple times .
This unit test case includes following focal methods:
(1) An assertion in line 51 validating that matrix.GetCoOccurrenceCount(word1,word2) > 0 is true.
(2) An assertion in line 58 validating that matrix.GetCoOccurrenceCount(word1,word2) > 0 is true.
(3) An assertion in line 65 validating that matrix.GetCoOccurrenceCount(word1,word2) == 0 is true.
This unit test case method tests split camel case .
This unit test case validates that:
(1) 7 is equal to parts.Length.
This unit test case method tests extract search terms test leave complete term .
This unit test case validates that:
(1) 1 is equal to parts.Count.
(2) parts.Contains("\"_solutionEvents\"") is true.
This unit test case method tests split underscores .
This unit test case validates that:
(1) 7 is equal to parts.Length.
This unit test case method tests unsplittable .
This unit test case validates that:
(1) 1 is equal to parts.Length.
This unit test case method tests abbreviations .
This unit test case validates that:
(1) parts.Length == 3 is true.
This unit test case method tests all caps .
This unit test case validates that:
(1) 1 is equal to parts.Length.
This unit test case method tests all caps underscore .
This unit test case validates that:
(1) 5 is equal to parts.Length.
This unit test case method tests begin underscore .
This unit test case validates that:
(1) 3 is equal to parts.Length.
This unit test case method tests handle shortcut in name .
This unit test case validates that:
(1) 3 is equal to parts.Length.
This unit test case method tests pseudo shortcut in name.
This unit test case validates that:
(1) 3 is equal to parts.Length.
This unit test case method tests handle extract search terms returns valid number of search terms when quotes used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join("*",parts) is equal to "\"word \"words inside quotes\" another_word\"".
(3) parts.Count is equal to 1.
   parts is obtained from
   1) variable parts through slicing path.
(4) String.Join("*",parts) is equal to "\"return \"..\\\\..\\\\Parser\"\"".
   parts is obtained from
   1) variable parts through slicing path.
This unit test case method tests interpret search query .
This unit test case validates that:
(1) WordSplitter.IsUnquotedLiteral("Assert.AreEqual(4, parts.Count);") is true.
(2) WordSplitter.IsUnquotedLiteral("public void ExtractSearchTerms_ReturnsValidNumberOfSearchTermsWhenQuotesUsedInsideQuotes()") is true.
(3) WordSplitter.IsUnquotedLiteral("ExtractSearchTerms_ReturnsValidNumberOfSearchTermsWhenQuotesUsedInsideQuotes(") is true.
(4) WordSplitter.IsUnquotedLiteral("WordSplitter.InvalidCharactersFound(\"\"wordSplitter.ExtractWords(\"IInUnderscore\")\"\")") is true.
(5) WordSplitter.IsUnquotedLiteral("simpleSearchCriteria.ToQueryString();") is true.
(6) WordSplitter.IsUnquotedLiteral("open file") is false.
(7) WordSplitter.IsUnquotedLiteral("\"sadfasdfasdfasdfasdfasdf\"") is false.
(8) WordSplitter.IsUnquotedLiteral(" \"sadfasdfasdfasdfasdfasdf\" ") is false.
(9) WordSplitter.IsUnquotedLiteral(" open file -test ") is false.
(10) WordSplitter.IsUnquotedLiteral("\"sadfasdfasdfasdfasdfasdf\" test") is true.
(11) WordSplitter.IsUnquotedLiteral("return \"..\\..\\Parser\";") is true.
(12) parsed.Equals("\"return \"..\\..\\Parser\";\"") is true.
This unit test case method tests extract search terms returns valid number of search terms when quotes used inside quotes.
This unit test case validates that:
(1) WordSplitter.InvalidCharactersFound("\"wordSplitter.ExtractWords(\"IInUnderscore\")\"") is false.
(2) WordSplitter.InvalidCharactersFound("\"Assert.IsNotNull(wordSplitter, \"Default word splitter should be used!\");\"") is false.
(3) WordSplitter.ExtractSearchTerms("\"Assert.IsNotNull(wordSplitter, \"Default word splitter should be used!\");\"") is not null.
(4) parts.Count is equal to 1.
This unit test case method tests extract search terms returns valid number of search terms when quotes used with invalid quote.
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) "\"word \"words inside quotes\" another word\"" is equal to String.Join("*",parts).
This unit test case method tests extract search terms slashes inside quotes inside quote .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join(" ",parts) is equal to "\"IsUnquotedLiteral(\"..\\Path\"))\"".
(3) parts.Count is equal to 1.
   parts is obtained from
   1) variable parts through slicing path.
(4) String.Join(" ",parts) is equal to "\"IsUnquotedLiteral(\"..\\Path\"))\"".
   parts is obtained from
   1) variable parts through slicing path.
This unit test case method tests handle extract search terms returns valid number of search terms when colon used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join(" ",parts) is equal to "\"file::open::now\"".
This unit test case method tests handle extract search terms returns valid number of search terms when equality operator used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join(" ",parts) is equal to "\"file=new\"".
This unit test case method tests handle extract search terms returns valid number of search terms when brackets used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join(" ",parts) is equal to "\"file(new File())\"".
This unit test case method tests extract search terms returns valid number of search terms when upper cases used 1.
This unit test case validates that:
(1) parts.Count is equal to 4.
(2) String.Join(" ",parts) is equal to "fileopennow file open now".
This unit test case method tests extract search terms returns valid number of search terms when upper cases used 2.
This unit test case validates that:
(1) parts.Count is equal to 4.
(2) String.Join(" ",parts) is equal to "fileopennow file open now".
This unit test case method tests extract search terms returns valid number of search terms when upper cases used 3.
This unit test case validates that:
(1) parts.Count is equal to 5.
(2) String.Join(" ",parts) is equal to "filetxtopennow file txt open now".
This unit test case method tests handle extract search terms returns valid number of search terms when numbers used .
This unit test case validates that:
(1) parts.Count is equal to 3.
(2) String.Join(" ",parts) is equal to "file324 file 324".
This unit test case method tests extract search terms returns valid number of search terms when numbers used 2.
This unit test case validates that:
(1) parts.Count is equal to 4.
(2) String.Join(" ",parts) is equal to "mp3player mp 3 player".
This unit test case method tests handle extract search terms returns valid number of search terms when underscore used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join(" ",parts) is equal to "\"file_open_now\"".
This unit test case method tests handle extract search terms returns valid number of search terms when no quotes used .
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) "\"word words inside quotes another_word\"" is equal to String.Join("*",parts).
This unit test case method tests extract search terms returns valid number of search terms when no operatort used with quotes.
This unit test case validates that:
(1) parts.Count is equal to 1.
(2) String.Join("*",parts) is equal to "\"word \"words inside\"\"".
This unit test case method tests extract search terms returns valid number of search terms when no operatort used without quotes.
This unit test case validates that:
(1) parts.Count is equal to 2.
(2) String.Join("*",parts) is equal to "word*-about".
This unit test case method tests extract search terms returns empty list when search term is empty string .
This unit test case validates that:
(1) parts.Count is equal to 0.
This unit test case method tests handle invalid characters found returns true when invalid characters used .
This unit test case validates that:
(1) invalidCharactersFound is true.
This unit test case method tests parsing query .
This unit test case validates that:
(1) invalidCharactersFound is false.
This unit test case method tests handle invalid characters found returns false when invalid characters used in quotes .
This unit test case validates that:
(1) invalidCharactersFound is false.
This unit test case method tests extract search terms contract fails when search term is null .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests extract search terms first part is always original .
This unit test case validates that:
(1) parts.Count is equal to 3.
   parts is obtained from
   1) variable term1 through slicing path.
(2) term1.ToLower() is equal to parts[0].
   term1 is obtained from
   1) variable term1 through slicing path.
(3) parts.Count is equal to 3.
   parts is obtained from
   1) variable term2 through slicing path.
(4) term2.ToLower() is equal to parts[0].
   term2 is obtained from
   1) variable term2 through slicing path.
(5) parts.Count is equal to 5.
   parts is obtained from
   1) variable term1 through slicing path
   2) variable term2 through slicing path.
(6) term1.ToLower() is equal to parts[0].
   term1 is obtained from
   1) variable term1 through slicing path.
(7) term2.ToLower() is equal to parts[1].
   term2 is obtained from
   1) variable term2 through slicing path.
This unit test case method tests performance .
This unit test case validates that:
(1) parts.Length == 3 is true.
(2) watch.ElapsedMilliseconds < 500 is true.
This unit test case method tests distinct by .
This unit test case validates that:
(1) list.Count() == 1 is true.
   list is obtained from
   1) variable list through slicing path.
(2) list.Length == 1 is true.
   list is obtained from
   1) variable list through slicing path.
(3) list.Length == 2 is true.
   list is obtained from
   1) variable list through slicing path.
This unit test case method tests handle random integers test .
This unit test case validates that:
(1) value >= min is true.
   value is obtained from
   1) variable min through slicing path
   2) variable max through slicing path.
(2) value <= max is true.
   value is obtained from
   1) variable min through slicing path
   2) variable max through slicing path.
(3) lowReached is true.
(4) highReached is true.
This unit test case method tests query same words .
This unit test case includes following focal methods:
(1) var results = corrector.FindSimilarWords(word).ToArray();(@line 85)
This focal method is related to assertions at line 86, line 87, line 88
This unit test case validates that:
(1) results is not null.
(2) results.Any() is true.
(3) results.First().Equals(word) is true.
This unit test case method tests query slightly different words .
This unit test case includes following focal methods:
(1) var results = corrector.FindSimilarWords(changedWord).ToArray();(@line 103)
This focal method is related to assertions at line 104, line 105, line 106
This unit test case validates that:
(1) results is not null.
(2) results.Any() is true.
(3) results.First().Equals(word) is true.
This unit test case method tests find and register valid extension points registers usable custom parser .
This unit test case validates that:
(1) parser is not null.
(2) The unit test does not throw an exception.
(3) programElements != null && programElements.Count == 1 is true.
(4) "TestCSharpName" is equal to programElements[0].Name.
(5) "Sando.TestExtensionPoints.TestElement" is equal to programElements[0].GetType().FullName.
This unit test case method tests find and register valid extension points registers usable custom word splitter .
This unit test case validates that:
(1) wordSplitter is not null.
(2) "Sando.TestExtensionPoints.TestWordSplitter" is equal to wordSplitter.GetType().FullName.
(3) The unit test does not throw an exception.
(4) splittedWords != null && splittedWords.Length == 2 is true.
(5) "File" is equal to splittedWords[0].
(6) "Name" is equal to splittedWords[1].
This unit test case method tests find and register valid extension points registers usable custom results reorderer .
This unit test case validates that:
(1) resultsReorderer is not null.
(2) "Sando.TestExtensionPoints.TestResultsReorderer" is equal to resultsReorderer.GetType().FullName.
(3) The unit test does not throw an exception.
(4) results != null && results.Count() == 2 is true.
(5) results.ElementAt(0).Score == 3 && results.ElementAt(0).ProgramElement.ProgramElementType == ProgramElementType.Method is true.
(6) results.ElementAt(1).Score == 1 && results.ElementAt(1).ProgramElement.ProgramElementType == ProgramElementType.Class is true.
This unit test case method tests find and register valid extension points registers usable custom query weights supplier .
This unit test case validates that:
(1) queryWeightsSupplier is not null.
(2) "Sando.TestExtensionPoints.TestQueryWeightsSupplier" is equal to queryWeightsSupplier.GetType().FullName.
(3) The unit test does not throw an exception.
(4) weights != null && weights.Count() == 2 is true.
(5) 2 is equal to weights["field1"].
(6) 3 is equal to weights["field2"].
This unit test case method tests find and register valid extension points registers usable custom query rewriter .
This unit test case validates that:
(1) queryRewriter is not null.
(2) "Sando.TestExtensionPoints.TestQueryRewriter" is equal to queryRewriter.GetType().FullName.
(3) The unit test does not throw an exception.
(4) String.IsNullOrWhiteSpace(query) is false.
(5) "two keywords" is equal to query.
This unit test case method tests find and register valid extension points registers usable custom index filter manager .
This unit test case validates that:
(1) indexFilterManager is not null.
(2) "Sando.TestExtensionPoints.TestIndexFilterManager" is equal to indexFilterManager.GetType().FullName.
(3) The unit test does not throw an exception.
(4) shouldBeIndexed is true.
This unit test case method tests find and register valid extension points registers custom parsers .
This unit test case validates that:
(1) parser is not null.
(2) "Sando.TestExtensionPoints.TestCSharpParser" is equal to parser.GetType().FullName.
(3) parser is not null.
(4) "Sando.TestExtensionPoints.TestCppParser" is equal to parser.GetType().FullName.
(5) parser is not null.
(6) "Sando.TestExtensionPoints.TestCppParser" is equal to parser.GetType().FullName.
(7) parser is not null.
(8) "Sando.TestExtensionPoints.TestCppParser" is equal to parser.GetType().FullName.
This unit test case method tests find and register valid extension points removes invalid custom parser configurations .
This unit test case validates that:
(1) parser is not null.
(2) "Sando.Parser.SrcMLCSharpParser" is equal to parser.GetType().FullName.
(3) logFileContent.Contains("3 invalid parser configurations found - they will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points removes invalid custom word splitter configuration .
This unit test case validates that:
(1) wordSplitter is not null.
(2) "Sando.Core.Tools.WordSplitter" is equal to wordSplitter.GetType().FullName.
(3) logFileContent.Contains("Invalid word splitter configuration found - it will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points removes invalid custom results reorderer configuration .
This unit test case validates that:
(1) resultsReorderer is not null.
(2) "Sando.SearchEngine.SortByScoreResultsReorderer" is equal to resultsReorderer.GetType().FullName.
(3) logFileContent.Contains("Invalid results reorderer configuration found - it will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points removes invalid custom query weights supplier configuration .
This unit test case validates that:
(1) queryWeightsSupplier is not null.
(2) "Sando.Indexer.Searching.QueryWeightsSupplier" is equal to queryWeightsSupplier.GetType().FullName.
(3) logFileContent.Contains("Invalid query weights supplier configuration found - it will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points removes invalid custom query rewriter configuration .
This unit test case validates that:
(1) queryRewriter is not null.
(2) "Sando.Indexer.Searching.DefaultQueryRewriter" is equal to queryRewriter.GetType().FullName.
(3) logFileContent.Contains("Invalid query rewriter configuration found - it will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points removes invalid custom index filter manager configuration .
This unit test case validates that:
(1) indexFilterManager is not null.
(2) "Sando.Indexer.IndexFiltering.IndexFilterManager" is equal to indexFilterManager.GetType().FullName.
(3) logFileContent.Contains("Invalid index filter manager configuration found - it will be omitted during registration process.") is true.
This unit test case method tests find and register valid extension points does not register invalid extension points .
This unit test case validates that:
(1) parser is not null.
(2) "Sando.Parser.SrcMLCSharpParser" is equal to parser.GetType().FullName.
(3) wordSplitter is not null.
(4) "Sando.Core.Tools.WordSplitter" is equal to wordSplitter.GetType().FullName.
(5) resultsReorderer is not null.
(6) "Sando.SearchEngine.SortByScoreResultsReorderer" is equal to resultsReorderer.GetType().FullName.
(7) logFileContent.Contains("Type cannot be found: Sando.NonExistingParser") is true.
(8) logFileContent.Contains("Could not load file or assembly 'file:///" + pluginDirectory + "NonExistingParser.dll' or one of its dependencies") is true.
(9) logFileContent.Contains("Could not load file or assembly 'file:///" + pluginDirectory + "NonExistingTestElement.dll' or one of its dependencies") is true.
(10) logFileContent.Contains("Could not load file or assembly 'file:///" + pluginDirectory + "NonExistingWordSplitter.dll' or one of its dependencies") is true.
(11) logFileContent.Contains("Type cannot be found: Sando.TestExtensionPoints.NonExistingResultsReorderer") is true.
(12) logFileContent.Contains("Type cannot be found: Sando.TestExtensionPoints.NonExistingQueryWeightsSupplier") is true.
(13) logFileContent.Contains("Type cannot be found: Sando.TestExtensionPoints.NonExistingQueryRewriter") is true.
(14) logFileContent.Contains("Type cannot be found: Sando.TestExtensionPoints.NonExistingIndexFilterManager") is true.
This unit test case method tests get parser implementation returns parser when called with lower or upper cased extension name.
This unit test case validates that:
(1) ExtensionPointsRepository.Instance.GetParserImplementation(".h") is not null.
(2) ExtensionPointsRepository.Instance.GetParserImplementation(".H") is not null.
(3) ExtensionPointsRepository.Instance.GetParserImplementation(".cpp") is not null.
(4) ExtensionPointsRepository.Instance.GetParserImplementation(".CPP") is not null.
This unit test case method tests given file logger not initialize when setup defautl file logger method is called and default logger is used then log file should be created and contain logged message .
This unit test case validates that:
(1) logFiles.Any() is true.
(2) content.Contains("Message from the logger") is true.
   content is obtained from
   1) variable logFiles through slicing path.
This unit test case method tests handle given solution full name is nul when get or create lucene directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given solution full name is invalid path when get or create lucene directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given lucene directory is null when get or create lucene directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given lucene directory parent path is invalid path when get or create lucene directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given valid path and lucene directory when get or create lucene directory for solution method is called then valid path is returned .
This unit test case validates that:
(1) String.IsNullOrWhiteSpace(dir) is false.
(2) Directory.Exists(luceneDirectoryPath) is true.
(3) Directory.Exists(solutionDirectoryPath) is true.
This unit test case method tests handle given solution full name is nul when get or create src ml archives directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given solution full name is invalid path when get or create src ml archives directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given lucene directory is null when get or create src ml archives directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given lucene directory parent path is invalid path when get or create src ml archives directory for solution method is called then empty string is returned .
This unit test case validates that:
(1) dir is equal to String.Empty.
This unit test case method tests handle given valid path and lucene directory when get or create src ml archives directory for solution method is called then valid path is returned .
This unit test case validates that:
(1) String.IsNullOrWhiteSpace(dir) is false.
(2) Directory.Exists(srcMlArchivesDirectoryPath) is true.
(3) Directory.Exists(solutionDirectoryPath) is true.
This unit test case method tests make sure folder is hashed on entire path.
This unit test case validates that:
(1) dir2 is not equal to dir.
This unit test case method tests search respects access level criteria internal .
This unit test case validates that:
(1) "Failed to find relevant search result for search: " + keywords is fail.
(2) AccessLevel.Internal is equal to method.AccessLevel.
(3) "StringBuilder stringBuilder UsageType usageType" is equal to method.Arguments.
(4) method.Body is not null.
(5) 141 is equal to method.DefinitionLineNumber.
(6) method.FullFilePath.EndsWith("\\TestFiles\\MethodElementTestFiles\\Searcher.cs".ToLowerInvariant()) is true.
(7) "SingleUsageTypeCriteriaToString" is equal to method.Name.
(8) ProgramElementType.Method is equal to method.ProgramElementType.
(9) "void" is equal to method.ReturnType.
(10) String.IsNullOrWhiteSpace(method.RawSource) is false.
This unit test case method tests search respects access level criteria .
This unit test case includes following focal methods:
(1) List
This focal method is related to assertions at line 73
This unit test case validates that:
(1) codeSearchResults.Count is equal to 2.
   codeSearchResults is obtained from
   1) variable codeSearcher through slicing path
   2) variable searchCriteria through slicing path.
(2) "Failed to find relevant search result for search: " + keywords is fail.
(3) AccessLevel.Private is equal to method.AccessLevel.
(4) "StringBuilder stringBuilder bool searchByUsageType" is equal to method.Arguments.
(5) method.Body is not null.
(6) 96 is equal to method.DefinitionLineNumber.
(7) method.FullFilePath.EndsWith("\\TestFiles\\MethodElementTestFiles\\Searcher.cs".ToLowerInvariant()) is true.
(8) "UsageTypeCriteriaToString" is equal to method.Name.
(9) ProgramElementType.Method is equal to method.ProgramElementType.
(10) "void" is equal to method.ReturnType.
(11) String.IsNullOrWhiteSpace(method.RawSource) is false.
This unit test case method tests search works normally for terms which ends with space.
This unit test case validates that:
(1) ex.Message is fail.
This unit test case method tests search returns elements using cross field matching .
This unit test case validates that:
(1) "Failed to find relevant search result for search: " + keywords is fail.
(2) AccessLevel.Public is equal to method.AccessLevel.
(3) "A B string fileName Image image" is equal to method.Arguments.
(4) method.Body is not null.
(5) method.ClassId != null && method.ClassId != Guid.Empty is true.
(6) "ImageCapture" is equal to method.ClassName.
(7) 83 is equal to method.DefinitionLineNumber.
(8) method.FullFilePath.EndsWith("\\TestFiles\\MethodElementTestFiles\\ImageCapture.cs".ToLowerInvariant()) is true.
(9) "FetchOutputStream" is equal to method.Name.
(10) ProgramElementType.Method is equal to method.ProgramElementType.
(11) "void" is equal to method.ReturnType.
(12) String.IsNullOrWhiteSpace(method.RawSource) is false.
This unit test case method tests handle preference for shortest match .
This unit test case validates that:
(1) results.Count >= 3 is true.
   results is obtained from
   1) variable keywords through slicing path
   2) variable predicate through slicing path
   3) variable expectedLowestRank through slicing path.
(2) results[0].Score > results[1].Score is true.
   results is obtained from
   1) variable keywords through slicing path
   2) variable predicate through slicing path
   3) variable expectedLowestRank through slicing path.
(3) results[0].Score > results[2].Score is true.
   results is obtained from
   1) variable keywords through slicing path
   2) variable predicate through slicing path
   3) variable expectedLowestRank through slicing path.
This unit test case method tests quoted exact query with quotes in it mind blown test.
This unit test case method tests handle method element returned from search contains all fields .
This unit test case validates that:
(1) 5 is equal to codeSearchResults.Count.
(2) "Failed to find relevant search result for search: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
(3) AccessLevel.Public is equal to method.AccessLevel.
(4) "A B string fileName Image image" is equal to method.Arguments.
(5) method.Body is not null.
(6) method.ClassId != null && method.ClassId != Guid.Empty is true.
(7) "ImageCapture" is equal to method.ClassName.
(8) 83 is equal to method.DefinitionLineNumber.
(9) method.FullFilePath.EndsWith("\\TestFiles\\MethodElementTestFiles\\ImageCapture.cs".ToLowerInvariant()) is true.
(10) "FetchOutputStream" is equal to method.Name.
(11) ProgramElementType.Method is equal to method.ProgramElementType.
(12) "void" is equal to method.ReturnType.
(13) String.IsNullOrWhiteSpace(method.RawSource) is false.
This unit test case method tests handle method search respects access level criteria .
This unit test case includes following focal methods:
(1) List
This focal method is related to assertions at line 68
This unit test case validates that:
(1) codeSearchResults.Count is equal to 7.
   codeSearchResults is obtained from
   1) variable codeSearcher through slicing path
   2) variable searchCriteria through slicing path.
(2) "Failed to find relevant search result for search: " + keywords is fail.
(3) AccessLevel.Public is equal to method.AccessLevel.
(4) String.Empty is equal to method.Arguments.
(5) method.Body is not null.
(6) method.ClassId != null && method.ClassId != Guid.Empty is true.
(7) "SimpleSearchCriteria" is equal to method.ClassName.
(8) 31 is equal to method.DefinitionLineNumber.
(9) method.FullFilePath.EndsWith("\\TestFiles\\MethodElementTestFiles\\Searcher.cs".ToLowerInvariant()) is true.
(10) "ToQueryString" is equal to method.Name.
(11) ProgramElementType.Method is equal to method.ProgramElementType.
(12) "void" is equal to method.ReturnType.
(13) String.IsNullOrWhiteSpace(method.RawSource) is false.
This unit test case method tests handle method search respects file extensions criteria .
This unit test case includes following focal methods:
(1) var codeSearchResults = codeSearcher.Search(searchCriteria);(@line 99)
This focal method is related to assertions at line 100
This unit test case validates that:
(1) codeSearchResults.Count is equal to 1.
   codeSearchResults is obtained from
   1) variable codeSearcher through slicing path
   2) variable searchCriteria through slicing path.
(2) "Failed to find relevant search result for search: " + keywords is fail.
This unit test case method tests close and reopen .
This unit test case includes following focal methods:
(1) An assertion in line 22 validating that currentIndexer.GetNumberOfIndexedDocuments() > 5 is true.
This unit test case method tests stemming for metrics calculation.
This unit test case validates that:
(1) "search" is equal to preMetrics.StemText("searching").
(2) "search" is equal to preMetrics.StemText("search").
(3) "solut close" is equal to preMetrics.StemText("solution closing").
(4) "index" is equal to preMetrics.StemText("indexer").
This unit test case method tests specificity metrics .
This unit test case includes following focal methods:
(1) An assertion in line 38 validating that preMetrics.AvgIdf("splitting") > preMetrics.AvgIdf("searching") is true.
(2) An assertion in line 39 validating that preMetrics.AvgIdf("solution closing") > preMetrics.AvgIdf("indexer") is true.
This unit test case method tests similarity metrics .
This unit test case includes following focal methods:
(1) An assertion in line 49 validating that preMetrics.AvgSqc("indexer") > preMetrics.AvgSqc("potato chip") is true.
(2) An assertion in line 50 validating that preMetrics.AvgSqc("indexer") > preMetrics.AvgSqc("soda pop") is true.
This unit test case method tests quoted search no results .
This unit test case validates that:
(1) _myMessage.Contains("No results") is true.
This unit test case method tests exclude test if class name has test .
This unit test case validates that:
(1) false is true.
This unit test case method tests file type search .
This unit test case validates that:
(1) false is true.
This unit test case method tests note sando search .
This unit test case validates that:
(1) "Should not find anything that matches for this test: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
This unit test case method tests search is using stemming .
This unit test case validates that:
(1) 8 is equal to codeSearchResults.Count.
(2) "Failed to find relevant search result for search: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
(3) AccessLevel.Public is equal to classElement.AccessLevel.
(4) String.Empty is equal to classElement.ExtendedClasses.
(5) 10 is equal to classElement.DefinitionLineNumber.
(6) classElement.FullFilePath.EndsWith("\\TestFiles\\StemmingTestFiles\\FileNameTemplate.cs".ToLowerInvariant()) is true.
(7) "FileNameTemplate" is equal to classElement.Name.
(8) ProgramElementType.Class is equal to classElement.ProgramElementType.
(9) String.Empty is equal to classElement.ImplementedInterfaces.
(10) String.IsNullOrWhiteSpace(classElement.RawSource) is false.
(11) "Failed to find relevant search result for search: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
(12) AccessLevel.Public is equal to methodElement.AccessLevel.
(13) "string extension" is equal to methodElement.Arguments.
(14) methodElement.Body is not null.
(15) methodElement.ClassId != null && methodElement.ClassId != Guid.Empty is true.
(16) "FileNameTemplate" is equal to methodElement.ClassName.
(17) 17 is equal to methodElement.DefinitionLineNumber.
(18) methodElement.FullFilePath.EndsWith("\\TestFiles\\StemmingTestFiles\\FileNameTemplate.cs".ToLowerInvariant()) is true.
(19) "Parse" is equal to methodElement.Name.
(20) ProgramElementType.Method is equal to methodElement.ProgramElementType.
(21) "ImagePairNames" is equal to methodElement.ReturnType.
(22) String.IsNullOrWhiteSpace(methodElement.RawSource) is false.
(23) "Failed to find relevant search result for search: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
(24) AccessLevel.Private is equal to methodElement.AccessLevel.
(25) "ImagePairNames startNames" is equal to methodElement.Arguments.
(26) methodElement.Body is not null.
(27) methodElement.ClassId != null && methodElement.ClassId != Guid.Empty is true.
(28) "FileNameTemplate" is equal to methodElement.ClassName.
(29) 53 is equal to methodElement.DefinitionLineNumber.
(30) methodElement.FullFilePath.EndsWith("\\TestFiles\\StemmingTestFiles\\FileNameTemplate.cs".ToLowerInvariant()) is true.
(31) "TryAddTemplatePrompt" is equal to methodElement.Name.
(32) ProgramElementType.Method is equal to methodElement.ProgramElementType.
(33) String.IsNullOrWhiteSpace(methodElement.RawSource) is false.
(34) "Failed to find relevant search result for search: " + keywords is fail.
   keywords is obtained from
   1) variable keywords through slicing path.
(35) AccessLevel.Private is equal to fieldElement.AccessLevel.
(36) fieldElement.ClassId != null && methodElement.ClassId != Guid.Empty is true.
(37) "FileNameTemplate" is equal to fieldElement.ClassName.
(38) 12 is equal to fieldElement.DefinitionLineNumber.
(39) fieldElement.FullFilePath.EndsWith("\\TestFiles\\StemmingTestFiles\\FileNameTemplate.cs".ToLowerInvariant()) is true.
(40) "fileName" is equal to fieldElement.Name.
(41) ProgramElementType.Field is equal to fieldElement.ProgramElementType.
(42) "string" is equal to fieldElement.FieldType.
(43) String.IsNullOrWhiteSpace(methodElement.RawSource) is false.
This unit test case method tests search test .
This unit test case validates that:
(1) TestHelpers.WaitForServiceToFinish(TestHelpers.SrcMLTestScaffold.Service,5000) is true.
(2) results.Count > 0 is true.
(3) results.First().Name.Equals("GamePadNode") is true.
(4) false is true.
This unit test case method tests handle recommendations test .
This unit test case validates that:
(1) TestHelpers.WaitForServiceToFinish(TestHelpers.SrcMLTestScaffold.Service,5000) is true.
(2) recommender.GenerateRecommendations("play").Length > 0 is true.
(3) recommender.GenerateRecommendations("play").Query.Equals("Player") is true.
(4) false is true.
This unit test case method tests handle summarization test .
This unit test case validates that:
(1) TestHelpers.WaitForServiceToFinish(TestHelpers.SrcMLTestScaffold.Service,10000) is true.
(2) highlight.Contains("public PC|~S~|Play|~E~|er PC|~S~|Play|~E~|er") is true.
(3) highlight.Contains("get") is false.
(4) highlight.Contains("return pc|~S~|Play|~E~|er;") is true.
This unit test case method tests split test .
This unit test case includes following focal methods:
(1) var actual = splitter.Split("DBGetHydro");(@line 14)
This focal method is related to assertions at line 16
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable splitter through slicing path.
This unit test case method tests split test lowercase .
This unit test case includes following focal methods:
(1) var actual = splitter.Split("lowercase");(@line 22)
This focal method is related to assertions at line 24
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable splitter through slicing path.
This unit test case method tests split test uppercase .
This unit test case includes following focal methods:
(1) var actual = splitter.Split("CONSTVAL");(@line 30)
This focal method is related to assertions at line 32
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable splitter through slicing path.
This unit test case method tests split test uppercase underscore .
This unit test case includes following focal methods:
(1) var actual = splitter.Split("CONST_VAL");(@line 38)
This focal method is related to assertions at line 40
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable splitter through slicing path.
This unit test case method tests split test bad camel case .
This unit test case includes following focal methods:
(1) var actual = splitter.Split("XMLparser");(@line 46)
This focal method is related to assertions at line 48
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable splitter through slicing path.
This unit test case method tests round trip .
This unit test case validates that:
(1) SwumDataRecordsAreEqual(sdr,actual) is true.
This unit test case method tests query recommender test .
This unit test case validates that:
(1) int(10 / QueryRecommender.Distance("Add","findAndAddRelevantFilesToIndexState")) < int(10 / QueryRecommender.Distance("Add","addError")) is true.
(2) QueryRecommender.Distance("AddFiles","Add") < QueryRecommender.Distance("AddFiles","AddAndDoOtherStuff") is true.
(3) QueryRecommender.Distance("AddFiles","AddFile") < QueryRecommender.Distance("AddFiles","AddFilesYeah") is true.
(4) QueryRecommender.Distance("Add","AddFilesAndDoStuff") < QueryRecommender.Distance("Add","FilesAndDoStuffAdd") is true.
This unit test case method tests round trip file names .
This unit test case validates that:
(1) SwumDataRecordsAreEqual(sdr,actual) is true.
This unit test case method tests reading real cache .
This unit test case includes following focal methods:
(1) var datas = manager.GetSwumData();(@line 32)
This focal method is related to assertions at line 33
This unit test case validates that:
(1) datas.Count > 400 is true.
(2) data.Value.SwumNode != null is true.
This unit test case method tests cache round trip .
This unit test case includes following focal methods:
(1) An assertion in line 46 validating that manager.GetSwumData().Count is equal to beforeCount.
This unit test case method tests add source file .
This unit test case includes following focal methods:
(1) An assertion in line 52 validating that manager.GetSwumData().Any() is false.
(2) An assertion in line 54 validating that manager.GetSwumData().Keys.Count is equal to 5.
(3) An assertion in line 55 validating that manager.GetSwumForSignature("static bool containsNewLine( Reader::Location begin, Reader::Location end )") is not null.
(4) An assertion in line 56 validating that manager.GetSwumForSignature("static std::string codePointToUTF8(unsigned int cp)") is not null.
(5) An assertion in line 57 validating that manager.GetSwumForSignature("Reader::Reader()") is not null.
(6) An assertion in line 58 validating that manager.GetSwumForSignature("bool Reader::parse( const std::string &document, Value &root, bool collectComments )") is not null.
(7) An assertion in line 59 validating that manager.GetSwumForSignature("bool Reader::parse( std::istream& sin, Value &root, bool collectComments )") is not null.
This unit test case method tests add source file double extension .
This unit test case includes following focal methods:
(1) An assertion in line 64 validating that manager.GetSwumData().Any() is false.
(2) An assertion in line 66 validating that manager.GetSwumData().Keys.Count is equal to 5.
(3) An assertion in line 67 validating that manager.GetSwumForSignature("static bool containsNewLine( Reader::Location begin, Reader::Location end )") is not null.
(4) An assertion in line 68 validating that manager.GetSwumForSignature("static std::string codePointToUTF8(unsigned int cp)") is not null.
(5) An assertion in line 69 validating that manager.GetSwumForSignature("Reader::Reader()") is not null.
(6) An assertion in line 70 validating that manager.GetSwumForSignature("bool Reader::parse( const std::string &document, Value &root, bool collectComments )") is not null.
(7) An assertion in line 71 validating that manager.GetSwumForSignature("bool Reader::parse( std::istream& sin, Value &root, bool collectComments )") is not null.
This unit test case method tests add source file c sharp property .
This unit test case includes following focal methods:
(1) An assertion in line 76 validating that manager.GetSwumData().Any() is false.
(2) An assertion in line 78 validating that manager.GetSwumData().Keys.Count is equal to 3.
(3) An assertion in line 79 validating that manager.GetSwumForSignature("public TestClass()") is not null.
(4) An assertion in line 80 validating that manager.GetSwumForSignature("public void DoStuff(string theStuff, int count)") is not null.
(5) An assertion in line 81 validating that manager.GetSwumForSignature("private int PrivateStuff(int count)") is not null.
This unit test case method tests remove source file .
This unit test case includes following focal methods:
(1) An assertion in line 88 validating that manager.GetSwumForSignature("char* MyFunction(int foo)") is not null.
(2) An assertion in line 90 validating that manager.GetSwumForSignature("char* MyFunction(int foo)") is null.
This unit test case method tests update source file .
This unit test case includes following focal methods:
(1) An assertion in line 97 validating that manager.GetSwumData().Count is equal to 2.
(2) An assertion in line 98 validating that manager.GetSwumForSignature("char* MyFunction(int foo)") is not null.
(3) An assertion in line 102 validating that manager.GetSwumData().Count is equal to 2.
(4) An assertion in line 103 validating that manager.GetSwumForSignature("char* MyFunction(int foo)") is null.
(5) An assertion in line 104 validating that manager.GetSwumForSignature("char* UpdatedMyFunction(int foo)") is not null.
This unit test case method tests program element reader read program element from document return valid class element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) element.AccessLevel == returnedElement.AccessLevel is true.
(3) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(4) element.ExtendedClasses == returnedElement.ExtendedClasses is true.
(5) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(6) element.ImplementedInterfaces == returnedElement.ImplementedInterfaces is true.
(7) element.Name == returnedElement.Name is true.
(8) element.Namespace == returnedElement.Namespace is true.
(9) element.ProgramElementType == returnedElement.ProgramElementType is true.
(10) element.RawSource == returnedElement.RawSource is true.
This unit test case method tests program element reader read program element from document return valid comment element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) "not stored in index" == returnedElement.Body is true.
(3) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(4) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(5) element.Name == returnedElement.Name is true.
(6) element.ProgramElementType == returnedElement.ProgramElementType is true.
(7) element.RawSource == returnedElement.RawSource is true.
This unit test case method tests program element reader read program element from document return valid enum element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) element.AccessLevel == returnedElement.AccessLevel is true.
(3) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(4) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(5) element.Name == returnedElement.Name is true.
(6) element.Namespace == returnedElement.Namespace is true.
(7) element.ProgramElementType == returnedElement.ProgramElementType is true.
(8) element.RawSource == returnedElement.RawSource is true.
(9) "not stored in index" == returnedElement.Body is true.
This unit test case method tests program element reader read program element from document return valid field element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) element.AccessLevel == returnedElement.AccessLevel is true.
(3) element.ClassId == returnedElement.ClassId is true.
(4) element.ClassName == returnedElement.ClassName is true.
(5) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(6) element.FieldType == returnedElement.FieldType is true.
(7) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(8) element.Name == returnedElement.Name is true.
(9) element.ProgramElementType == returnedElement.ProgramElementType is true.
(10) element.RawSource == returnedElement.RawSource is true.
This unit test case method tests program element reader read program element from document return valid method element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) element.AccessLevel == returnedElement.AccessLevel is true.
(3) element.Arguments == returnedElement.Arguments is true.
(4) "not stored in index" == returnedElement.Body is true.
(5) element.ClassId == returnedElement.ClassId is true.
(6) element.ClassName == returnedElement.ClassName.ToSandoDisplayable() is true.
(7) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(8) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(9) element.Name == returnedElement.Name is true.
(10) element.ProgramElementType == returnedElement.ProgramElementType is true.
(11) element.ReturnType == returnedElement.ReturnType is true.
(12) element.RawSource == returnedElement.RawSource is true.
This unit test case method tests program element reader read program element from document return valid property element for valid document.
This unit test case validates that:
(1) returnedElement is not null.
   returnedElement is obtained from
   1) variable element through slicing path.
(2) element.AccessLevel == returnedElement.AccessLevel is true.
(3) "not stored in index" == returnedElement.Body is true.
(4) element.ClassId == returnedElement.ClassId is true.
(5) element.ClassName == returnedElement.ClassName is true.
(6) element.DefinitionLineNumber == returnedElement.DefinitionLineNumber is true.
(7) StandardizeFilePath(element.FullFilePath) == returnedElement.FullFilePath is true.
(8) element.Name == returnedElement.Name is true.
(9) element.ProgramElementType == returnedElement.ProgramElementType is true.
(10) element.PropertyType == returnedElement.PropertyType is true.
(11) element.RawSource == returnedElement.RawSource is true.
This unit test case method tests search criteria equals return true when object is compared to its own.
This unit test case validates that:
(1) simpleSearchCriteria.Equals(simpleSearchCriteria) is true.
This unit test case method tests search criteria equals return true when objects have the same data .
This unit test case validates that:
(1) simpleSearchCriteria1.Equals(simpleSearchCriteria2) is true.
This unit test case method tests search criteria equals return false when objects have different data .
This unit test case validates that:
(1) simpleSearchCriteria1.Equals(simpleSearchCriteria2) is false.
This unit test case method tests handle simple search criteria to query string creates valid query string for empty search criteria .
This unit test case validates that:
(1) String.Empty is equal to queryString.
This unit test case method tests handle simple search criteria exact match to query string .
This unit test case includes following focal methods:
(1) string queryString = simpleSearchCriteria.ToQueryString();(@line 35)
This focal method is related to assertions at line 37
This unit test case validates that:
(1) queryString.Contains("Source:*ServiceLocator.Resolve
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
This unit test case method tests handle simple search criteria basic query weights in finnish .
This unit test case includes following focal methods:
(1) string queryString = simpleSearchCriteria.ToQueryString();(@line 46)
This focal method is related to assertions at line 47
(2) queryString = simpleSearchCriteria.ToQueryString();(@line 50)
This focal method is related to assertions at line 52
This unit test case validates that:
(1) queryString.Contains("ImplementedInterfaces:hi^0.2 ") is true.
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
(2) 0.2.ToString().Equals("0,2") is true.
(3) queryString.Contains("ImplementedInterfaces:hi^0.2 ") is true.
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
This unit test case method tests handle simple search criteria quoted to query string .
This unit test case includes following focal methods:
(1) string queryString = simpleSearchCriteria.ToQueryString();(@line 60)
This focal method is related to assertions at line 61
This unit test case validates that:
(1) queryString.Contains("Source:*ServiceLocator.Resolve
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
This unit test case method tests handle simple search criteria quoted no weird chars to query string .
This unit test case includes following focal methods:
(1) string queryString = simpleSearchCriteria.ToQueryString();(@line 69)
This focal method is related to assertions at line 70
This unit test case validates that:
(1) queryString.Contains("Source:*ServiceLocatorResolve*") is true.
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
This unit test case method tests handle simple search criteria quoted with spaces .
This unit test case includes following focal methods:
(1) string queryString = simpleSearchCriteria.ToQueryString();(@line 78)
This focal method is related to assertions at line 79
This unit test case validates that:
(1) queryString.Contains("Source:*foreach\\(var?term?in?SearchTerms\\)*") is true.
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
This unit test case method tests handle simple search criteria to query string throws when searching by access level with no access level criteria .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests handle simple search criteria to query string throws when searching by location with no location criteria .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests handle simple search criteria to query string throws when searching by program element type with no program element type criteria .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests handle simple search criteria to query string throws when searching by usage type with no usage type criteria .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests handle simple search criteria to query string creates valid access levels query string single condition .
This unit test case validates that:
(1) "(" + SandoField.AccessLevel.ToString() + ":private)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid access levels query string multiple conditions .
This unit test case validates that:
(1) "(" + SandoField.AccessLevel.ToString() + ":protected OR " + SandoField.AccessLevel.ToString() + ":public)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid file extensions query string single condition .
This unit test case validates that:
(1) "(" + SandoField.FileExtension.ToString() + ":\".cs\")" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates file extensions query string multiple conditions .
This unit test case validates that:
(1) "(" + SandoField.FileExtension.ToString() + ":\".cs\" OR " + SandoField.FileExtension.ToString() + ":\".h\")" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid locations query string single condition .
This unit test case validates that:
(1) "(" + SandoField.FullFilePath.ToString() + ":\"C:/Project/*.cs\")" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid locations query string multiple conditions .
This unit test case validates that:
(1) "(" + SandoField.FullFilePath.ToString() + ":\"C:/Project/*.cs\" OR " + SandoField.FullFilePath.ToString() + ":\"C:/Project2/*.cs\")" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid program element types query string single condition .
This unit test case validates that:
(1) "(" + SandoField.ProgramElementType.ToString() + ":class)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid program element types query string multiple conditions .
This unit test case validates that:
(1) "(" + SandoField.ProgramElementType.ToString() + ":property OR " + SandoField.ProgramElementType.ToString() + ":enum OR " + SandoField.ProgramElementType.ToString() + ":class)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid usage types query string no condition .
This unit test case validates that:
(1) actual is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid usage types query string single condition .
This unit test case validates that:
(1) "(" + SandoField.ExtendedClasses.ToString() + ":SimpleClass^0.2)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid usage types query string multiple conditions .
This unit test case validates that:
(1) "(" + SandoField.Name.ToString() + ":SimpleClass^3 OR " + SandoField.ExtendedClasses.ToString() + ":SimpleClass^0.2 OR " + SandoField.Namespace.ToString() + ":SimpleClass^0.05)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid usage types query string multiple search terms .
This unit test case validates that:
(1) actual is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid query string quoted search term .
This unit test case validates that:
(1) "(" + SandoField.Name.ToString() + ":*Class?Simple*^3)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid query string all conditions .
This unit test case validates that:
(1) "(" + SandoField.AccessLevel.ToString() + ":protected OR " + SandoField.AccessLevel.ToString() + ":public) AND " + "(" + SandoField.ProgramElementType.ToString() + ":property OR " + SandoField.ProgramElementType.ToString() + ":enum OR " + SandoField.ProgramElementType.ToString() + ":class) AND " + "(" + SandoField.FileExtension.ToString() + ":\".cs\" OR " + SandoField.FileExtension.ToString() + ":\".h\") AND " + "(" + SandoField.FullFilePath.ToString() + ":\"C:/Project/*.cs\" OR " + SandoField.FullFilePath.ToString() + ":\"C:/Project2/*.cs\") AND " + "(" + SandoField.Name.ToString() + ":SimpleClass^3 OR " + SandoField.ExtendedClasses.ToString() + ":SimpleClass^0.2 OR " + SandoField.Namespace.ToString() + ":SimpleClass^0.05)" is equal to queryString.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests handle simple search criteria to query string creates valid query string special characters .
This unit test case validates that:
(1) queryString is equal to "(Body:*\\+?\\-?\\&\\&?\\|\\|?\\!?\\(?\\)?\\{?\\}?\\[?\\]?\\^?\\~?\\:?*^4)".
   queryString is obtained from
   1) variable simpleSearchCriteria through slicing path.
(2) query is not null.
(3) ex.Message is fail.
This unit test case method tests lucene doc to custom program element.
This unit test case validates that:
(1) myCustomProgramElementForTesting != null is true.
   myCustomProgramElementForTesting is obtained from
   1) variable customSandoDocument through slicing path.
(2) myCustomProgramElementForTesting.A.Equals("A's value") is true.
   myCustomProgramElementForTesting is obtained from
   1) variable customSandoDocument through slicing path.
(3) myCustomProgramElementForTesting.B.Equals("B's value") is true.
   myCustomProgramElementForTesting is obtained from
   1) variable customSandoDocument through slicing path.
(4) myCustomProgramElementForTesting.C.Equals("C's value") is true.
   myCustomProgramElementForTesting is obtained from
   1) variable customSandoDocument through slicing path.
This unit test case method tests handle custom document to lucene document .
This unit test case validates that:
(1) luceneDocumentWithCustomFields != null is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
This unit test case method tests get custom document from factory test.
This unit test case validates that:
(1) element != null is true.
This unit test case method tests round trip .
This unit test case validates that:
(1) field1.StringValue().Equals(field2.StringValue()) is true.
   field1 is obtained from
   1) variable element through slicing path
   2) variable property through slicing path.
This unit test case method tests lucene doc to custom program element for method.
This unit test case validates that:
(1) myCustomProgramElementForTesting != null is true.
   myCustomProgramElementForTesting is obtained from
   1) variable document through slicing path.
(2) myCustomProgramElementForTesting.Boom.Equals("Ba dow") is true.
   myCustomProgramElementForTesting is obtained from
   1) variable document through slicing path.
This unit test case method tests handle custom document to lucene document for method .
This unit test case validates that:
(1) luceneDocumentWithCustomFields != null is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
(2) luceneDocumentWithCustomFields.GetField("Boom") != null is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
(3) luceneDocumentWithCustomFields.GetField("Boom").StringValue().Equals("Ba dow") is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
This unit test case method tests lucene doc to custom program element for class.
This unit test case validates that:
(1) myCustomProgramElementForTesting != null is true.
   myCustomProgramElementForTesting is obtained from
   1) variable document through slicing path.
(2) myCustomProgramElementForTesting.Bam.Equals("Zaow") is true.
   myCustomProgramElementForTesting is obtained from
   1) variable document through slicing path.
This unit test case method tests handle custom document to lucene document for class .
This unit test case validates that:
(1) luceneDocumentWithCustomFields != null is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
(2) luceneDocumentWithCustomFields.GetField("Bam") != null is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
(3) luceneDocumentWithCustomFields.GetField("Bam").StringValue().Equals("Zaow") is true.
   luceneDocumentWithCustomFields is obtained from
   1) variable customSandoDocument through slicing path.
This unit test case method tests sando document string extension to sando searchable returns valid string.
This unit test case validates that:
(1) "SetFileExtension" + SandoDocumentStringExtension.Delimiter + "Set File Extension" is equal to testString.ToSandoSearchable().
(2) "donothing" is equal to testString.ToSandoSearchable().
(3) String.Empty is equal to testString.ToSandoSearchable().
This unit test case method tests sando document string extension to sando displayable returns valid string.
This unit test case validates that:
(1) "SetFileExtension" is equal to testString.ToSandoDisplayable().
(2) "donothing" is equal to testString.ToSandoDisplayable().
(3) String.Empty is equal to testString.ToSandoDisplayable().
This unit test case method tests document factory create returns class document for valid class element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is ClassDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns struct document for valid struct element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is StructDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns comment document for valid comment element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is CommentDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns enum document for valid enum element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is EnumDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns field document for valid field element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is FieldDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns method document for valid method element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is MethodDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create returns property document for valid property element.
This unit test case validates that:
(1) sandoDocument != null is true.
(2) sandoDocument is PropertyDocument is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document factory create throws contract exception if program element is null .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests handle document factory create throws contract exception if unsported program element subclass object passed .
This unit test case validates that:
(1) contractFailed is true.
This unit test case method tests document indexer constructor does not throw when valid data .
This unit test case validates that:
(1) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document indexer add document does not throw when valid data .
This unit test case validates that:
(1) sandoDocument is not null.
   sandoDocument is obtained from
   1) variable classElement through slicing path.
(2) sandoDocument.GetDocument() is not null.
   sandoDocument is obtained from
   1) variable classElement through slicing path.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests document indexer add document throws when program element is null .
This unit test case validates that:
(1) _contractFailed is true.
This unit test case method tests document indexer delete documents .
This unit test case includes following focal methods:
(1) int numDocs = _documentIndexer.GetNumberOfIndexedDocuments();(@line 78)
This focal method is related to assertions at line 79
(2) int docs = _documentIndexer.GetNumberOfIndexedDocuments();(@line 81)
This focal method is related to assertions at line 82
This unit test case validates that:
(1) numDocs == 1 is true.
(2) docs == 0 is true.
(3) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests given document indexer when index searcher is closed and search failed then index searcher is recreated and search returns results .
This unit test case validates that:
(1) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests given document indexer when index searcher is closed then index searcher is recreated in background thread and search returns results.
This unit test case validates that:
(1) ex.Message + ". " + ex.StackTrace is fail.
This unit test case method tests handle index filter manager should file be indexed returns false if extension rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 31)
This focal method is related to assertions at line 32
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns true if no extension rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 54)
This focal method is related to assertions at line 55
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns false if file name rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 77)
This focal method is related to assertions at line 78
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns true if no file name rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 100)
This focal method is related to assertions at line 101
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns false if directory rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 125)
This focal method is related to assertions at line 126
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns true if no directory rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 151)
This focal method is related to assertions at line 152
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns false if path expressions rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 177)
This focal method is related to assertions at line 178
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns true if no path expressions rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 203)
This focal method is related to assertions at line 204
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns false if path regular expressions rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 229)
This focal method is related to assertions at line 230
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests handle index filter manager should file be indexed returns true if no path regular expressions rule matches .
This unit test case includes following focal methods:
(1) var actual = indexFilterManager.ShouldFileBeIndexed(fullFilePath);(@line 255)
This focal method is related to assertions at line 256
This unit test case validates that:
(1) actual is equal to expected.
   actual is obtained from
   1) variable indexFilterSettings through slicing path
   2) variable logger through slicing path
   3) variable testFileName through slicing path.
This unit test case method tests query metrics query type test .
This unit test case validates that:
(1) "Plain,Plain" is equal to QueryMetrics.ExamineQuery("a b").ToString().
(2) "Quoted,Quoted,Quoted" is equal to QueryMetrics.ExamineQuery("\"a b c\"").ToString().
(3) "CamelcaseUnderscore,Plain" is equal to QueryMetrics.ExamineQuery("a_aAa b").ToString().
(4) "Quoted,Camelcase" is equal to QueryMetrics.ExamineQuery("\" a\" bBb").ToString().
(5) "Plain,Plain" is equal to QueryMetrics.ExamineQuery("a\" \"b").ToString().
(6) "Plain,QuotedUnderscore,Plain" is equal to QueryMetrics.ExamineQuery("a\" B_b_b_B \"c").ToString().
(7) "Quoted,AcronymUnderscore" is equal to QueryMetrics.ExamineQuery("\"a\" BBB_b").ToString().
(8) "MinusCamelcase,CamelcaseAcronym" is equal to QueryMetrics.ExamineQuery("-Abb aAAAc").ToString().
This unit test case method tests query metrics dice coefficient test .
This unit test case validates that:
(1) QueryMetrics.DiceCoefficient("a b","b c") - 0.50 < 0.001 is true.
(2) QueryMetrics.DiceCoefficient("a b c d e f g h","a b c d e f g") - 0.933 < 0.001 is true.
(3) QueryMetrics.DiceCoefficient("\"a\" BBB_b","BB BBB BBB_b") - 0.40 < 0.001 is true.
(4) QueryMetrics.DiceCoefficient(String.Empty,String.Empty) == 0.0 is true.
This unit test case method tests if query parses to empty search term.
This unit test case validates that:
(1) simple.SearchTerms.Where().ToList().Count >= 1 is false.
   simple is obtained from
   1) variable description through slicing path.
This unit test case method tests create code searcher .
This unit test case validates that:
(1) The unit test does not throw an exception.
This unit test case method tests perform basic search .
This unit test case includes following focal methods:
(1) List
This focal method is related to assertions at line 40
This unit test case validates that:
(1) result.Count > 0 is true.
   result is obtained from
   1) variable indexerSearcher through slicing path.
This unit test case method tests create code searcher .
This unit test case validates that:
(1) The unit test does not throw an exception.
This unit test case method tests perform basic search .
This unit test case includes following focal methods:
(1) List
This focal method is related to assertions at line 40
This unit test case validates that:
(1) result.Count > 0 is true.
   result is obtained from
   1) variable indexerSearcher through slicing path.
This unit test case method tests summarize comment test .
This unit test case validates that:
(1) "TODO - should fix this if it happens too often".Equals(commentSummary) is true.
This unit test case method tests summarize one line test .
This unit test case validates that:
(1) "TODO - should fix this if it happens too often".Equals(commentSummary) is true.
This unit test case method tests summarize multi line test .
This unit test case validates that:
(1) "Used for the culture in SR".Equals(commentSummary) is true.
This unit test case method tests summarize dash test .
This unit test case validates that:
(1) "This code was generated by:".Equals(commentSummary) is true.
This unit test case method tests summarize no space test .
This unit test case validates that:
(1) "Save the plug-in's settings.".Equals(commentSummary) is true.
This unit test case method tests summarize space test .
This unit test case validates that:
(1) "Specifies the size, in bytes, of the structure. The caller must set this to Marshal.SizeOf(typeof(CURSORINFO)).".Equals(commentSummary) is true.
This unit test case method tests parse cpp source test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse(sourceFile);(@line 30)
This focal method is related to assertions at line 31
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable sourceFile through slicing path.
(2) 6 is equal to elements.Count.
This unit test case method tests parse cpp source with errors test.
This unit test case includes following focal methods:
(1) var elements = parser.Parse(sourceFile);(@line 45)
This focal method is related to assertions at line 46
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable sourceFile through slicing path.
(2) 5 is equal to elements.Count.
This unit test case method tests parse cpp header test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\Event.H.txt");(@line 58)
This focal method is related to assertions at line 59
This unit test case validates that:
(1) elements is not null.
(2) 8 is equal to elements.Count.
(3) "Event" is equal to classElem.Name.
(4) 12 is equal to classElem.DefinitionLineNumber.
(5) AccessLevel.Public is equal to classElem.AccessLevel.
(6) String.Empty is equal to classElem.Namespace.
(7) classElem.FullFilePath.EndsWith("TestFiles\\Event.H.txt") is true.
   classElem is obtained from
   1) variable pe through slicing path.
(8) "EventType" is equal to enumElem.Name.
(9) 6 is equal to enumElem.DefinitionLineNumber.
(10) String.Empty is equal to enumElem.Namespace.
(11) "SENSED_DATA_READY SENDING_DONE RECEIVING_DONE" is equal to enumElem.Body.
(12) AccessLevel.Public is equal to enumElem.AccessLevel.
(13) enumElem.FullFilePath.EndsWith("TestFiles\\Event.H.txt") is true.
   enumElem is obtained from
   1) variable pe through slicing path.
(14) hasClass is true.
(15) hasEnum is true.
This unit test case method tests parse about dlg test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\AboutDlg.cpp");(@line 93)
This focal method is related to assertions at line 94
This unit test case validates that:
(1) elements is not null.
This unit test case method tests parse undefined name enum test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\PlayMp3Dlg.h.txt");(@line 102)
This focal method is related to assertions at line 103
This unit test case validates that:
(1) elements is not null.
(2) "" is equal to enumElem.Name.
(3) 30 is equal to enumElem.DefinitionLineNumber.
(4) "IDD IDD_PLAYMP3_DIALOG" is equal to enumElem.Body.
(5) AccessLevel.Public is equal to enumElem.AccessLevel.
(6) enumElem.FullFilePath.EndsWith("TestFiles\\PlayMp3Dlg.h.txt") is true.
   enumElem is obtained from
   1) variable pe through slicing path.
(7) hasEnum is true.
This unit test case method tests parse another enum test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\xmlMatchedTagsHighlighter.cpp");(@line 124)
This focal method is related to assertions at line 125
This unit test case validates that:
(1) elements is not null.
This unit test case method tests handle tricky file test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\Parameters.h");(@line 132)
This focal method is related to assertions at line 133
This unit test case validates that:
(1) elements is not null.
This unit test case method tests handle weird struct test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse(WeirdStructFile);(@line 150)
This focal method is related to assertions at line 151
This unit test case validates that:
(1) elements.Count == 2 is true.
   elements is obtained from
   1) variable WeirdStructFile through slicing path.
(2) structElement is not null.
   structElement is obtained from
   1) variable pe through slicing path.
(3) "LangMenuItem" is equal to structElement.Name.
(4) structId is equal to methodElement.ClassId.
   structId is obtained from
   1) variable pe through slicing path.
(5) hasStruct is true.
This unit test case method tests parse cpp constructor test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\Event.H.txt");(@line 180)
This focal method is related to assertions at line 181
This unit test case validates that:
(1) elements is not null.
(2) "Event" is equal to protoElement.Name.
(3) 15 is equal to protoElement.DefinitionLineNumber.
(4) hasConstructor is true.
This unit test case method tests parse big file test .
This unit test case validates that:
(1) _processFileInBackground.IsBusy == false is true.
This unit test case method tests parse cpp source with alternative parser test.
This unit test case includes following focal methods:
(1) var elements = parser.Parse(sourceFile);(@line 222)
This focal method is related to assertions at line 223
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable sourceFile through slicing path.
(2) 6 is equal to elements.Count.
(3) programElement as MyMethodElementUnresolvedType.CustomStuffHere.Equals("WHOA") is true.
(4) foundOne is true.
This unit test case method tests generate src ml shortest file test .
This unit test case includes following focal methods:
(1) var srcML = parser.Parse("TestFiles\\ShortestCSharpFile.txt");(@line 26)
This focal method is related to assertions at line 27
This unit test case validates that:
(1) srcML != null is true.
This unit test case method tests parse possibly failing file .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\MESTParsingFile.txt");(@line 34)
This focal method is related to assertions at line 35, line 36
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
This unit test case method tests parse method test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 44)
This focal method is related to assertions at line 45, line 46
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
This unit test case method tests parse method with alternative parser test.
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 55)
This focal method is related to assertions at line 56, line 57
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
(3) programElement as MyCSharpMethodElement.CustomCrazyStuff.Equals("wow") is true.
(4) seenOne is true.
This unit test case method tests parse class test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 119)
This focal method is related to assertions at line 120, line 121
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
(3) 14 is equal to classElem.DefinitionLineNumber.
(4) AccessLevel.Public is equal to classElem.AccessLevel.
(5) "Sando.Parser" is equal to classElem.Namespace.
(6) classElem.FullFilePath.EndsWith("TestFiles\\ShortCSharpFile.txt") is true.
   classElem is obtained from
   1) variable pe through slicing path.
(7) seenClass is true.
This unit test case method tests handle basic parser test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 146)
This focal method is related to assertions at line 147, line 148
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
(3) programElement.RawSource != null is true.
(4) hasClass && hasMethod is true.
This unit test case method tests enum parser test .
This unit test case validates that:
(1) "LanguageEnum" is equal to enumElem.Name.
(2) 7 is equal to enumElem.DefinitionLineNumber.
(3) "Sando.Parser" is equal to enumElem.Namespace.
(4) "Java C CSharp" is equal to enumElem.Body.
(5) AccessLevel.Public is equal to enumElem.AccessLevel.
(6) enumElem.FullFilePath.EndsWith("TestFiles\\ShortCSharpFile.txt") is true.
   enumElem is obtained from
   1) variable programElement through slicing path.
(7) hasEnum is true.
This unit test case method tests handle c sharp struct parser test .
This unit test case validates that:
(1) "SimpleStruct" is equal to structElem.Name.
(2) 6 is equal to structElem.DefinitionLineNumber.
(3) "SimpleNamespace" is equal to structElem.Namespace.
(4) AccessLevel.Internal is equal to structElem.AccessLevel.
(5) structElem.FullFilePath.EndsWith("TestFiles\\Struct1.cs.txt") is true.
   structElem is obtained from
   1) variable programElement through slicing path.
(6) hasStruct is true.
This unit test case method tests handle c sharp region test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\RegionTest.txt");(@line 211)
This focal method is related to assertions at line 212, line 213
This unit test case validates that:
(1) elements is not null.
(2) elements.Count == 2 is true.
(3) hasClass && hasMethod is true.
This unit test case method tests handle method links to class test .
This unit test case validates that:
(1) ImageCaptureClassElement.Id is equal to method.ClassId.
   ImageCaptureClassElement is obtained from
   1) variable pe through slicing path.
(2) ImageCaptureClassElement.Name is equal to method.ClassName.
   ImageCaptureClassElement is obtained from
   1) variable pe through slicing path.
(3) foundMethod is true.
This unit test case method tests parse constructor test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 274)
This focal method is related to assertions at line 275
This unit test case validates that:
(1) elements is not null.
(2) "SrcMLGenerator" is equal to methodElement.Name.
(3) 21 is equal to methodElement.DefinitionLineNumber.
(4) AccessLevel.Public is equal to methodElement.AccessLevel.
(5) hasConstructor is true.
This unit test case method tests handle given file with readonly and static elements when parse method is called then valid access levels are retrieved .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\ShortCSharpFile.txt");(@line 298)
This focal method is related to assertions at line 301, line 305
This unit test case validates that:
(1) readonlyField is not null.
(2) AccessLevel.Internal is equal to readonlyField.AccessLevel.
(3) staticMethod is not null.
(4) AccessLevel.Public is equal to staticMethod.AccessLevel.
This unit test case method tests parse properties .
This unit test case validates that:
(1) seenClass is true.
(2) countProperties == 6 is true.
This unit test case method tests parse multiple parents .
This unit test case validates that:
(1) numParents == 4 is true.
   numParents is obtained from
   1) variable programElement through slicing path.
(2) seenClass is true.
This unit test case method tests class inheritance test .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("TestFiles\\InheritanceCSharpFile.txt");(@line 72)
This focal method is related to assertions at line 73, line 74
This unit test case validates that:
(1) elements is not null.
(2) elements.Count > 0 is true.
(3) 8 is equal to classElem.DefinitionLineNumber.
(4) AccessLevel.Public is equal to classElem.AccessLevel.
(5) "Sando.Indexer.Exceptions" is equal to classElem.Namespace.
(6) "SandoException" is equal to classElem.ExtendedClasses.
(7) seenClass is true.
This unit test case method tests parse string literals .
This unit test case validates that:
(1) method.Body.Contains("Testingphraseola") is true.
This unit test case method tests parse variable declarations .
This unit test case validates that:
(1) method.Body.Contains("waddow") is true.
This unit test case method tests parse parameters .
This unit test case validates that:
(1) method.Arguments.Contains("parameterFilename") is true.
(2) method.Arguments.Contains("String") is true.
This unit test case method tests parse xaml file .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\SearchViewControl.xaml.txt");(@line 18)
This focal method is related to assertions at line 19, line 20
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable parser through slicing path.
(2) elements.Count is equal to 205.
   elements is obtained from
   1) variable parser through slicing path.
(3) element.Name is equal to "".
This unit test case method tests parse txt file .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\LongFile.txt");(@line 36)
This focal method is related to assertions at line 37
(2) elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\NotSoLongFile.txt");(@line 39)
This focal method is related to assertions at line 40, line 41
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable parser through slicing path.
(2) 987386 is equal to elements.Count.
(3) elements is not null.
   elements is obtained from
   1) variable parser through slicing path.
(4) elements.Count is equal to 23945.
   elements is obtained from
   1) variable parser through slicing path.
This unit test case method tests parse xaml file 2 .
This unit test case includes following focal methods:
(1) var elements = parser.Parse("..\\..\\Parser\\Parser.UnitTests\\TestFiles\\SearchViewControl.xaml.txt");(@line 50)
This focal method is related to assertions at line 51, line 52
This unit test case validates that:
(1) elements is not null.
   elements is obtained from
   1) variable parser through slicing path.
(2) elements.Count is equal to 84.
   elements is obtained from
   1) variable parser through slicing path.
(3) element.Name is equal to "Auto 0 -5,0,0,0 2 0".
This unit test case method tests length of each xaml element.
This unit test case validates that:
(1) element.RawSource.Split(new string,StringSplitOptions.None).Count() <= XAMLFileParser.LengthLimit is true.
This unit test case method tests handle performance test .
This unit test case validates that:
(1) sw.Elapsed.TotalSeconds < 50 is true.
This unit test case method tests get value test .
This unit test case validates that:
(1) Configuration.GetValue(settingName) == settingValue is true.
This unit test case method tests given registered type when resolve method is called twice within the same thread then the same object is returned for each call.
This unit test case validates that:
(1) ReferenceEquals(_instance1,_instance2) is true.
This unit test case method tests given registered type when resolve method is called twice once in different thread then the same object is returned for each call.
This unit test case validates that:
(1) ReferenceEquals(_instance1,_instance2) is true.
This unit test case method tests given registered type when resolve method is called twice from different threads then the same object is returned for each call.
This unit test case validates that:
(1) ReferenceEquals(_instance1,_instance2) is true.
This unit test case method tests given registered instance was called with different names when resolve method is called with different names then different object is returned for each call.
This unit test case validates that:
(1) _instance1 is InterfImpl1 is true.
(2) _instance2 is InterfImpl2 is true.
(3) ReferenceEquals(_instance1,_instance2) is false.
This unit test case method tests handle given no instance register for given type when resolve optional method is called then null is returned .
This unit test case validates that:
(1) _instance1 is null.
This unit test case method tests handle given registered instance for given type when resolve optional method is called then object is returned .
This unit test case validates that:
(1) _instance1 is not null.
This unit test case method tests handle translator get translation returns valid translation for valid code .
This unit test case validates that:
(1) Translator.GetTranslation(TranslationCode.TestResource) == "Test resource" is true.