@@ -151,13 +151,17 @@ public void WhenGivenQueryString_ThenShouldReturn_TheDesiredScoring(
151
151
[ TestCase ( "goo" , "Google Chrome" , SearchPrecisionScore . Regular , true ) ]
152
152
[ TestCase ( "chr" , "Google Chrome" , SearchPrecisionScore . Low , true ) ]
153
153
[ TestCase ( "chr" , "Chrome" , SearchPrecisionScore . Regular , true ) ]
154
+ [ TestCase ( "chr" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Regular , false ) ]
154
155
[ TestCase ( "chr" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Low , true ) ]
155
156
[ TestCase ( "chr" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , false ) ]
156
157
[ TestCase ( "chr" , "Candy Crush Saga from King" , SearchPrecisionScore . None , true ) ]
157
- [ TestCase ( "ccs" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , true ) ]
158
+ [ TestCase ( "ccs" , "Candy Crush Saga from King" , SearchPrecisionScore . Low , true ) ]
158
159
[ TestCase ( "cand" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , true ) ]
159
- [ TestCase ( "cand" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Regular ,
160
- false ) ]
160
+ [ TestCase ( "cand" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Regular , false ) ]
161
+ [ TestCase ( "vsc" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
162
+ [ TestCase ( "vs" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
163
+ [ TestCase ( "vc" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
164
+ [ TestCase ( "vts" , VisualStudioCode , SearchPrecisionScore . Regular , false ) ]
161
165
public void WhenGivenDesiredPrecision_ThenShouldReturn_AllResultsGreaterOrEqual (
162
166
string queryString ,
163
167
string compareString ,
@@ -188,10 +192,8 @@ public void WhenGivenDesiredPrecision_ThenShouldReturn_AllResultsGreaterOrEqual(
188
192
189
193
[ TestCase ( "exce" , "OverLeaf-Latex: An online LaTeX editor" , SearchPrecisionScore . Regular , false ) ]
190
194
[ TestCase ( "term" , "Windows Terminal (Preview)" , SearchPrecisionScore . Regular , true ) ]
191
- [ TestCase ( "sql s managa" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular ,
192
- false ) ]
193
- [ TestCase ( "sql' s manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular ,
194
- false ) ]
195
+ [ TestCase ( "sql s managa" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , false ) ]
196
+ [ TestCase ( "sql' s manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , false ) ]
195
197
[ TestCase ( "sql s manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
196
198
[ TestCase ( "sql manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
197
199
[ TestCase ( "sql" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
@@ -204,18 +206,13 @@ public void WhenGivenDesiredPrecision_ThenShouldReturn_AllResultsGreaterOrEqual(
204
206
[ TestCase ( "mssms" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
205
207
[ TestCase ( "msms" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
206
208
[ TestCase ( "chr" , "Shutdown" , SearchPrecisionScore . Regular , false ) ]
207
- [ TestCase ( "chr" , "Change settings for text-to-speech and for speech recognition (if installed)." ,
208
- SearchPrecisionScore . Regular , false ) ]
209
- [ TestCase ( "ch r" , "Change settings for text-to-speech and for speech recognition (if installed)." ,
210
- SearchPrecisionScore . Regular , true ) ]
209
+ [ TestCase ( "chr" , "Change settings for text-to-speech and for speech recognition (if installed)." , SearchPrecisionScore . Regular , false ) ]
210
+ [ TestCase ( "ch r" , "Change settings for text-to-speech and for speech recognition (if installed)." , SearchPrecisionScore . Regular , true ) ]
211
211
[ TestCase ( "a test" , "This is a test" , SearchPrecisionScore . Regular , true ) ]
212
212
[ TestCase ( "test" , "This is a test" , SearchPrecisionScore . Regular , true ) ]
213
213
[ TestCase ( "cod" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
214
214
[ TestCase ( "code" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
215
215
[ TestCase ( "codes" , "Visual Studio Codes" , SearchPrecisionScore . Regular , true ) ]
216
- [ TestCase ( "vsc" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
217
- [ TestCase ( "vs" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
218
- [ TestCase ( "vc" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
219
216
public void WhenGivenQuery_ShouldReturnResults_ContainingAllQuerySubstrings (
220
217
string queryString ,
221
218
string compareString ,
@@ -300,15 +297,18 @@ public void WhenMultipleResults_ExactMatchingResult_ShouldHaveGreatestScore(
300
297
$ "Should be greater than{ Environment . NewLine } " +
301
298
$ "Name of second: \" { secondName } \" , Final Score: { secondScore } { Environment . NewLine } ") ;
302
299
}
303
-
304
- [ TestCase ( "vsc" , "Visual Studio Code" , 100 ) ]
305
- [ TestCase ( "jbr" , "JetBrain Rider" , 100 ) ]
306
- [ TestCase ( "jr" , "JetBrain Rider" , 90 ) ]
307
- [ TestCase ( "vs" , "Visual Studio" , 100 ) ]
308
- [ TestCase ( "vs" , "Visual Studio Preview" , 100 ) ]
309
- [ TestCase ( "vsp" , "Visual Studio Preview" , 100 ) ]
310
- [ TestCase ( "vsp" , "Visual Studio" , 0 ) ]
311
- [ TestCase ( "pc" , "Postman Canary" , 100 ) ]
300
+
301
+ [ TestCase ( "vsc" , "Visual Studio Code" , 100 ) ]
302
+ [ TestCase ( "jbr" , "JetBrain Rider" , 100 ) ]
303
+ [ TestCase ( "jr" , "JetBrain Rider" , 66 ) ]
304
+ [ TestCase ( "vs" , "Visual Studio" , 100 ) ]
305
+ [ TestCase ( "vs" , "Visual Studio Preview" , 66 ) ]
306
+ [ TestCase ( "vsp" , "Visual Studio Preview" , 100 ) ]
307
+ [ TestCase ( "pc" , "postman canary" , 100 ) ]
308
+ [ TestCase ( "psc" , "Postman super canary" , 100 ) ]
309
+ [ TestCase ( "psc" , "Postman super Canary" , 100 ) ]
310
+ [ TestCase ( "vsp" , "Visual Studio" , 0 ) ]
311
+ [ TestCase ( "vps" , "Visual Studio" , 0 ) ]
312
312
public void WhenGivenAnAcronymQuery_ShouldReturnAcronymScore ( string queryString , string compareString ,
313
313
int desiredScore )
314
314
{
0 commit comments