@@ -148,15 +148,15 @@ public void WhenGivenQueryString_ThenShouldReturn_TheDesiredScoring(
148
148
$ "Expected score for compare string '{ compareString } ': { expectedScore } , Actual: { rawScore } ") ;
149
149
}
150
150
151
- [ TestCase ( "goo" , "Google Chrome" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
152
- [ TestCase ( "chr" , "Google Chrome" , StringMatcher . SearchPrecisionScore . Low , true ) ]
153
- [ TestCase ( "chr" , "Chrome" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
154
- [ TestCase ( "chr" , "Help cure hope raise on mind entity Chrome" , StringMatcher . SearchPrecisionScore . Low , true ) ]
155
- [ TestCase ( "chr" , "Candy Crush Saga from King" , StringMatcher . SearchPrecisionScore . Regular , false ) ]
156
- [ TestCase ( "chr" , "Candy Crush Saga from King" , StringMatcher . SearchPrecisionScore . None , true ) ]
157
- [ TestCase ( "ccs" , "Candy Crush Saga from King" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
158
- [ TestCase ( "cand" , "Candy Crush Saga from King" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
159
- [ TestCase ( "cand" , "Help cure hope raise on mind entity Chrome" , StringMatcher . SearchPrecisionScore . Regular ,
151
+ [ TestCase ( "goo" , "Google Chrome" , SearchPrecisionScore . Regular , true ) ]
152
+ [ TestCase ( "chr" , "Google Chrome" , SearchPrecisionScore . Low , true ) ]
153
+ [ TestCase ( "chr" , "Chrome" , SearchPrecisionScore . Regular , true ) ]
154
+ [ TestCase ( "chr" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Low , true ) ]
155
+ [ TestCase ( "chr" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , false ) ]
156
+ [ TestCase ( "chr" , "Candy Crush Saga from King" , SearchPrecisionScore . None , true ) ]
157
+ [ TestCase ( "ccs" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , true ) ]
158
+ [ TestCase ( "cand" , "Candy Crush Saga from King" , SearchPrecisionScore . Regular , true ) ]
159
+ [ TestCase ( "cand" , "Help cure hope raise on mind entity Chrome" , SearchPrecisionScore . Regular ,
160
160
false ) ]
161
161
public void WhenGivenDesiredPrecision_ThenShouldReturn_AllResultsGreaterOrEqual (
162
162
string queryString ,
@@ -186,36 +186,36 @@ public void WhenGivenDesiredPrecision_ThenShouldReturn_AllResultsGreaterOrEqual(
186
186
$ "Precision Score: { ( int ) expectedPrecisionScore } ") ;
187
187
}
188
188
189
- [ TestCase ( "exce" , "OverLeaf-Latex: An online LaTeX editor" , StringMatcher . SearchPrecisionScore . Regular , false ) ]
190
- [ TestCase ( "term" , "Windows Terminal (Preview)" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
191
- [ TestCase ( "sql s managa" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular ,
189
+ [ TestCase ( "exce" , "OverLeaf-Latex: An online LaTeX editor" , SearchPrecisionScore . Regular , false ) ]
190
+ [ TestCase ( "term" , "Windows Terminal (Preview)" , SearchPrecisionScore . Regular , true ) ]
191
+ [ TestCase ( "sql s managa" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular ,
192
192
false ) ]
193
- [ TestCase ( "sql' s manag" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular ,
193
+ [ TestCase ( "sql' s manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular ,
194
194
false ) ]
195
- [ TestCase ( "sql s manag" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
196
- [ TestCase ( "sql manag" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
197
- [ TestCase ( "sql" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
198
- [ TestCase ( "sql serv" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
199
- [ TestCase ( "servez" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , false ) ]
200
- [ TestCase ( "sql servz" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , false ) ]
201
- [ TestCase ( "sql serv man" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
202
- [ TestCase ( "sql studio" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
203
- [ TestCase ( "mic" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
204
- [ TestCase ( "mssms" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
205
- [ TestCase ( "msms" , MicrosoftSqlServerManagementStudio , StringMatcher . SearchPrecisionScore . Regular , true ) ]
206
- [ TestCase ( "chr" , "Shutdown" , StringMatcher . SearchPrecisionScore . Regular , false ) ]
195
+ [ TestCase ( "sql s manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
196
+ [ TestCase ( "sql manag" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
197
+ [ TestCase ( "sql" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
198
+ [ TestCase ( "sql serv" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
199
+ [ TestCase ( "servez" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , false ) ]
200
+ [ TestCase ( "sql servz" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , false ) ]
201
+ [ TestCase ( "sql serv man" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
202
+ [ TestCase ( "sql studio" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
203
+ [ TestCase ( "mic" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
204
+ [ TestCase ( "mssms" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
205
+ [ TestCase ( "msms" , MicrosoftSqlServerManagementStudio , SearchPrecisionScore . Regular , true ) ]
206
+ [ TestCase ( "chr" , "Shutdown" , SearchPrecisionScore . Regular , false ) ]
207
207
[ TestCase ( "chr" , "Change settings for text-to-speech and for speech recognition (if installed)." ,
208
- StringMatcher . SearchPrecisionScore . Regular , false ) ]
208
+ SearchPrecisionScore . Regular , false ) ]
209
209
[ TestCase ( "ch r" , "Change settings for text-to-speech and for speech recognition (if installed)." ,
210
- StringMatcher . SearchPrecisionScore . Regular , true ) ]
211
- [ TestCase ( "a test" , "This is a test" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
212
- [ TestCase ( "test" , "This is a test" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
213
- [ TestCase ( "cod" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
214
- [ TestCase ( "code" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
215
- [ TestCase ( "codes" , "Visual Studio Codes" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
216
- [ TestCase ( "vsc" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
217
- [ TestCase ( "vs" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
218
- [ TestCase ( "vc" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
210
+ SearchPrecisionScore . Regular , true ) ]
211
+ [ TestCase ( "a test" , "This is a test" , SearchPrecisionScore . Regular , true ) ]
212
+ [ TestCase ( "test" , "This is a test" , SearchPrecisionScore . Regular , true ) ]
213
+ [ TestCase ( "cod" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
214
+ [ TestCase ( "code" , VisualStudioCode , SearchPrecisionScore . Regular , true ) ]
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
219
public void WhenGivenQuery_ShouldReturnResults_ContainingAllQuerySubstrings (
220
220
string queryString ,
221
221
string compareString ,
@@ -251,7 +251,7 @@ public void WhenGivenAQuery_Scoring_ShouldGiveMoreWeightToStartOfNewWord(
251
251
string queryString , string compareString1 , string compareString2 )
252
252
{
253
253
// When
254
- var matcher = new StringMatcher { UserSettingSearchPrecision = StringMatcher . SearchPrecisionScore . Regular } ;
254
+ var matcher = new StringMatcher { UserSettingSearchPrecision = SearchPrecisionScore . Regular } ;
255
255
256
256
// Given
257
257
var compareString1Result = matcher . FuzzyMatch ( queryString , compareString1 ) ;
0 commit comments