mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Correct test case param
This commit is contained in:
parent
6d7aa46747
commit
634e263086
1 changed files with 4 additions and 4 deletions
|
|
@ -8,15 +8,15 @@ namespace Flow.Launcher.Test.Plugins
|
|||
[TestFixture]
|
||||
public class ExplorerTest
|
||||
{
|
||||
[TestCase("directory='file:{path}'")]
|
||||
public void GivenWindowsIndexSearch_WhenProvidedFolderPath_ThenQueryWhereRestrictionsShouldUseDirectoryString(string expectedString)
|
||||
[TestCase("C:\\Dropbox", "directory='file:C:\\Dropbox'")]
|
||||
public void GivenWindowsIndexSearch_WhenProvidedFolderPath_ThenQueryWhereRestrictionsShouldUseDirectoryString(string path, string expectedString)
|
||||
{
|
||||
// Given
|
||||
var queryConstructor = new QueryConstructor(new Settings());
|
||||
|
||||
// When
|
||||
var path = @"C:\Dropbox";
|
||||
var result = queryConstructor.QueryWhereRestrictionsForTopLevelDirectorySearch(path);
|
||||
var folderPath = path;
|
||||
var result = queryConstructor.QueryWhereRestrictionsForTopLevelDirectorySearch(folderPath);
|
||||
|
||||
// Then
|
||||
Assert.IsTrue(result == expectedString,
|
||||
|
|
|
|||
Loading…
Reference in a new issue