From 620b2d277e66835770dc9d10cc07e9bb2ccac3ba Mon Sep 17 00:00:00 2001 From: Davide Giacometti Date: Tue, 29 Oct 2024 22:45:56 +0100 Subject: [PATCH] test fix --- .../InternalQueryFolderTests.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder.UnitTests/InternalQueryFolderTests.cs b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder.UnitTests/InternalQueryFolderTests.cs index bca0459dd2af..db4fc8f2a1b0 100644 --- a/src/modules/launcher/Plugins/Microsoft.Plugin.Folder.UnitTests/InternalQueryFolderTests.cs +++ b/src/modules/launcher/Plugins/Microsoft.Plugin.Folder.UnitTests/InternalQueryFolderTests.cs @@ -51,7 +51,7 @@ public void Query_ThrowsException_WhenCalledNull() [DataRow(@"c:", 2, 1, false, DisplayName = "Root without \\")] [DataRow(@"c:\", 2, 1, false, DisplayName = "Normal root")] [DataRow(@"c:\Test", 2, 2, false, DisplayName = "Select yourself")] - [DataRow(@"c:\not-exist", 0, 0, false, DisplayName = "Folder not exist, return root")] + [DataRow(@"c:\not-exist", 2, 0, false, DisplayName = "Folder not exist, return root")] [DataRow(@"c:\not-exist\not-exist2", 0, 0, false, DisplayName = "Folder not exist, return root")] [DataRow(@"c:\bla.t", 2, 1, false, DisplayName = "Partial match file")] [DataRow(@"c:/bla.t", 2, 1, false, DisplayName = "Partial match file with /")] @@ -88,8 +88,8 @@ public void Query_WhenCalled(string search, int folders, int files, bool truncat [DataTestMethod] [DataRow(@"c:\>", 3, 3, true, DisplayName = "Max Folder test recursive")] - [DataRow(@"c:\Test>", 0, 0, true, DisplayName = "2 Folders recursive")] - [DataRow(@"c:\not-exist>", 0, 0, true, DisplayName = "Folder not exist, return root recursive")] + [DataRow(@"c:\Test>", 3, 0, true, DisplayName = "2 Folders recursive")] + [DataRow(@"c:\not-exist>", 3, 0, true, DisplayName = "Folder not exist, return root recursive")] [DataRow(@"c:\not-exist\not-exist2>", 0, 0, false, DisplayName = "Folder not exist, return root recursive")] public void Query_Recursive_WhenCalled(string search, int folders, int files, bool truncated) {