mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
add unit test for determining file content search
This commit is contained in:
parent
3111271a16
commit
08bfa8da9c
1 changed files with 15 additions and 0 deletions
|
|
@ -217,6 +217,21 @@ namespace Flow.Launcher.Test.Plugins
|
|||
$"Actual string was: {resultString}{Environment.NewLine}");
|
||||
}
|
||||
|
||||
[TestCase("content:some words")]
|
||||
public void GivenQuery_WhenFileContentSearchHotkeyIsIncluded_ThenShouldReturnTrue(string querySearchString)
|
||||
{
|
||||
// Given
|
||||
var searchManager = new SearchManager(new Settings(), new PluginInitContext());
|
||||
|
||||
// When
|
||||
var result = searchManager.IsFileContentSearch(querySearchString);
|
||||
|
||||
// Then
|
||||
Assert.IsTrue(result,
|
||||
$"Expected True for file content search. {Environment.NewLine} " +
|
||||
$"Actual result was: {result}{Environment.NewLine}");
|
||||
}
|
||||
|
||||
[TestCase(@"c:\\", false)]
|
||||
[TestCase(@"i:\", true)]
|
||||
[TestCase(@"\c:\", false)]
|
||||
|
|
|
|||
Loading…
Reference in a new issue