From 4226b74fc4be7cef5c0d3f5cc98f4965e6aac048 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Sun, 19 Jul 2020 22:24:02 +1000 Subject: [PATCH] update test for file content search action keyword --- Flow.Launcher.Test/Plugins/ExplorerTest.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Test/Plugins/ExplorerTest.cs b/Flow.Launcher.Test/Plugins/ExplorerTest.cs index 2eef1ce7f..0298a4d99 100644 --- a/Flow.Launcher.Test/Plugins/ExplorerTest.cs +++ b/Flow.Launcher.Test/Plugins/ExplorerTest.cs @@ -217,14 +217,15 @@ namespace Flow.Launcher.Test.Plugins $"Actual string was: {resultString}{Environment.NewLine}"); } - [TestCase("content:some words")] - public void GivenQuery_WhenFileContentSearchHotkeyIsIncluded_ThenShouldReturnTrue(string querySearchString) + public void GivenQuery_WhenActionKeywordForFileContentSearchExists_ThenFileContentSearchRequiredShouldReturnTrue() { // Given - var searchManager = new SearchManager(new Settings(), new PluginInitContext()); + var query = new Query { ActionKeyword = "doc:", Search = "search term" }; + var searchManager = new SearchManager(new Settings(), new PluginInitContext()); + // When - var result = searchManager.IsFileContentSearch(querySearchString); + var result = searchManager.IsFileContentSearch(query.ActionKeyword); // Then Assert.IsTrue(result,