File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Flow.Launcher.Test/Plugins Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,21 @@ public void GivenWindowsIndexSearch_WhenSearchForFileContent_ThenQueryShouldUseE
217
217
$ "Actual string was: { resultString } { Environment . NewLine } ") ;
218
218
}
219
219
220
+ [ TestCase ( "content:some words" ) ]
221
+ public void GivenQuery_WhenFileContentSearchHotkeyIsIncluded_ThenShouldReturnTrue ( string querySearchString )
222
+ {
223
+ // Given
224
+ var searchManager = new SearchManager ( new Settings ( ) , new PluginInitContext ( ) ) ;
225
+
226
+ // When
227
+ var result = searchManager . IsFileContentSearch ( querySearchString ) ;
228
+
229
+ // Then
230
+ Assert . IsTrue ( result ,
231
+ $ "Expected True for file content search. { Environment . NewLine } " +
232
+ $ "Actual result was: { result } { Environment . NewLine } ") ;
233
+ }
234
+
220
235
[ TestCase ( @"c:\\" , false ) ]
221
236
[ TestCase ( @"i:\" , true ) ]
222
237
[ TestCase ( @"\c:\" , false ) ]
You can’t perform that action at this time.
0 commit comments