File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Flow.Launcher.Test/Plugins Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -217,14 +217,15 @@ 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 )
220
+ public void GivenQuery_WhenActionKeywordForFileContentSearchExists_ThenFileContentSearchRequiredShouldReturnTrue ( )
222
221
{
223
222
// Given
224
- var searchManager = new SearchManager ( new Settings ( ) , new PluginInitContext ( ) ) ;
223
+ var query = new Query { ActionKeyword = "doc:" , Search = "search term" } ;
225
224
225
+ var searchManager = new SearchManager ( new Settings ( ) , new PluginInitContext ( ) ) ;
226
+
226
227
// When
227
- var result = searchManager . IsFileContentSearch ( querySearchString ) ;
228
+ var result = searchManager . IsFileContentSearch ( query . ActionKeyword ) ;
228
229
229
230
// Then
230
231
Assert . IsTrue ( result ,
You can’t perform that action at this time.
0 commit comments