Piotr Czajkowski il y a 2 mois
Parent
commit
bd2adc379c
1 fichiers modifiés avec 9 ajouts et 8 suppressions
  1. 9 8
      ProcessFilesTests/ProcessFilesTests.cs

+ 9 - 8
ProcessFilesTests/ProcessFilesTests.cs

@@ -9,22 +9,23 @@ namespace ProcessFilesTests
         private readonly string testFolder = "./testFiles";
         private readonly string testFile = "./testFiles/test1.txt";
 
-        private readonly List<string> expectedInSubFolder = new()
-        {
+        private static readonly string expectedInFolder = "test1.txt";
+
+        private readonly List<string> expectedInSubFolder =
+        [
+            expectedInFolder,
             "test2.txt",
             "test3.txt"
-        };
+        ];
 
-        private readonly List<string> expectedInSubFolderMultipleExtensions = new()
-        {
+        private readonly List<string> expectedInSubFolderMultipleExtensions =
+        [
             "test.json"
-        };
+        ];
 
-        private readonly string expectedInFolder = "test1.txt";
 
         public ProcessFilesTests()
         {
-            expectedInSubFolder.Add(expectedInFolder);
             expectedInSubFolderMultipleExtensions.AddRange(expectedInSubFolder);
         }