Browse Source

Cosmetics and build update

Piotr Czajkowski 2 years ago
parent
commit
a8d897c8ef

+ 1 - 1
.github/workflows/dotnetcore.yml

@@ -12,7 +12,7 @@ jobs:
     - name: Setup .NET Core
     - name: Setup .NET Core
       uses: actions/setup-dotnet@v1
       uses: actions/setup-dotnet@v1
       with:
       with:
-        dotnet-version: 3.1
+        dotnet-version: 5.0.x
     - name: Test
     - name: Test
       run: dotnet test ProcessFilesTests/
       run: dotnet test ProcessFilesTests/
     - name: Build
     - name: Build

+ 2 - 0
ProcessFiles/ProcessFiles.cs

@@ -111,6 +111,8 @@ namespace ProcessFiles
                         break;
                         break;
                     case Result.Failure:
                     case Result.Failure:
                         continue;
                         continue;
+                    default:
+                        break;
                 }
                 }
             }
             }
 
 

+ 1 - 1
ProcessFiles/ProcessFiles.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
   <PropertyGroup>
   <PropertyGroup>
-    <TargetFrameworks>netcoreapp3.1;net472</TargetFrameworks>
+    <TargetFrameworks>net5</TargetFrameworks>
   </PropertyGroup>
   </PropertyGroup>
 
 
 </Project>
 </Project>

+ 2 - 2
ProcessFilesTests/ProcessFilesTests.cs

@@ -9,13 +9,13 @@ namespace ProcessFilesTests
         private readonly string testFolder = "./testFiles";
         private readonly string testFolder = "./testFiles";
         private readonly string testFile = "./testFiles/test1.txt";
         private readonly string testFile = "./testFiles/test1.txt";
 
 
-        private List<string> expectedInSubFolder = new List<string>
+        private readonly List<string> expectedInSubFolder = new()
         {
         {
             "test2.txt",
             "test2.txt",
             "test3.txt"
             "test3.txt"
         };
         };
 
 
-        private string exptectedInFolder = "test1.txt";
+        private readonly string exptectedInFolder = "test1.txt";
 
 
         [Fact]
         [Fact]
         public void ProcessFolderTest()
         public void ProcessFolderTest()

+ 1 - 1
ProcessFilesTests/ProcessFilesTests.csproj

@@ -1,7 +1,7 @@
 <Project Sdk="Microsoft.NET.Sdk">
 <Project Sdk="Microsoft.NET.Sdk">
 
 
   <PropertyGroup>
   <PropertyGroup>
-    <TargetFramework>netcoreapp3.1</TargetFramework>
+    <TargetFramework>net5</TargetFramework>
 
 
     <IsPackable>false</IsPackable>
     <IsPackable>false</IsPackable>
   </PropertyGroup>
   </PropertyGroup>