Skip to content

Commit 4226b74

Browse files
committed
update test for file content search action keyword
1 parent 6518bf8 commit 4226b74

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Flow.Launcher.Test/Plugins/ExplorerTest.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,14 +217,15 @@ public void GivenWindowsIndexSearch_WhenSearchForFileContent_ThenQueryShouldUseE
217217
$"Actual string was: {resultString}{Environment.NewLine}");
218218
}
219219

220-
[TestCase("content:some words")]
221-
public void GivenQuery_WhenFileContentSearchHotkeyIsIncluded_ThenShouldReturnTrue(string querySearchString)
220+
public void GivenQuery_WhenActionKeywordForFileContentSearchExists_ThenFileContentSearchRequiredShouldReturnTrue()
222221
{
223222
// Given
224-
var searchManager = new SearchManager(new Settings(), new PluginInitContext());
223+
var query = new Query { ActionKeyword = "doc:", Search = "search term" };
225224

225+
var searchManager = new SearchManager(new Settings(), new PluginInitContext());
226+
226227
// When
227-
var result = searchManager.IsFileContentSearch(querySearchString);
228+
var result = searchManager.IsFileContentSearch(query.ActionKeyword);
228229

229230
// Then
230231
Assert.IsTrue(result,

0 commit comments

Comments
 (0)