Browse Source

Cosmetics

Piotr Czajkowski 2 months ago
parent
commit
bd2adc379c
1 changed files with 9 additions and 8 deletions
  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);
         }