From 634e2630865822d7f4591374bf733bc303201084 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Tue, 12 May 2020 05:56:51 +1000 Subject: [PATCH] Correct test case param --- Flow.Launcher.Test/Plugins/ExplorerTest.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Flow.Launcher.Test/Plugins/ExplorerTest.cs b/Flow.Launcher.Test/Plugins/ExplorerTest.cs index c0fa32f5b..055a358bc 100644 --- a/Flow.Launcher.Test/Plugins/ExplorerTest.cs +++ b/Flow.Launcher.Test/Plugins/ExplorerTest.cs @@ -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,