From 30af8d9cb840764c3f1d518db82e333b474c291e Mon Sep 17 00:00:00 2001 From: tombogle Date: Fri, 16 Aug 2024 11:36:06 -0400 Subject: [PATCH] Updated copyright date. Suppressed generation of package files for ClipboardTestApp and ArchivingTestApp. Also did a little minor refactoring in Writing System tests. --- Directory.Build.props | 2 +- .../Properties/AssemblyInfo.cs | 2 -- .../WritingSystemOrphanFinderTests.cs | 19 +++++-------------- .../ArchivingTestApp/ArchivingTestApp.csproj | 2 ++ .../ClipboardTestApp/ClipboardTestApp.csproj | 2 ++ 5 files changed, 10 insertions(+), 17 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index e1baf319d..68822ccce 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -5,7 +5,7 @@ SIL International SIL International libpalaso - Copyright © 2010-2023 SIL International + Copyright © 2010-2024 SIL International NU1605;CS8002 prompt 4 diff --git a/SIL.WritingSystems.Tests/Properties/AssemblyInfo.cs b/SIL.WritingSystems.Tests/Properties/AssemblyInfo.cs index c93b73e75..5d04e122f 100644 --- a/SIL.WritingSystems.Tests/Properties/AssemblyInfo.cs +++ b/SIL.WritingSystems.Tests/Properties/AssemblyInfo.cs @@ -1,5 +1,3 @@ -using System.Reflection; -using System.Runtime.InteropServices; using SIL.TestUtilities; [assembly: OfflineSldr] \ No newline at end of file diff --git a/SIL.WritingSystems.Tests/WritingSystemOrphanFinderTests.cs b/SIL.WritingSystems.Tests/WritingSystemOrphanFinderTests.cs index 8ed28fb1c..ddd3f38c8 100644 --- a/SIL.WritingSystems.Tests/WritingSystemOrphanFinderTests.cs +++ b/SIL.WritingSystems.Tests/WritingSystemOrphanFinderTests.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.IO; using System.Linq; @@ -21,15 +21,12 @@ public TestEnvironment(string id1, string id2) { WritingSystemRepository = new TestLdmlInFolderWritingSystemRepository(WritingSystemsPath); _file = _folder.GetNewTempFile(true); - File.WriteAllText(_file.Path, String.Format("|{0}||{0}||{1}|", id1, id2)); + File.WriteAllText(_file.Path, $"|{id1}||{id1}||{id2}|"); } - private string WritingSystemsPath - { - get { return _folder.Combine("WritingSystems"); } - } + private string WritingSystemsPath => _folder.Combine("WritingSystems"); - public LdmlInFolderWritingSystemRepository WritingSystemRepository { get; private set; } + public LdmlInFolderWritingSystemRepository WritingSystemRepository { get; } public void Dispose() { @@ -56,13 +53,7 @@ public void ReplaceIdInFile(string oldid, string newid) File.WriteAllText(_file.Path, fileContent); } - public string FileContent - { - get - { - return File.ReadAllText(_file.Path); - } - } + public string FileContent => File.ReadAllText(_file.Path); } [Test] diff --git a/TestApps/ArchivingTestApp/ArchivingTestApp.csproj b/TestApps/ArchivingTestApp/ArchivingTestApp.csproj index a870d4a17..725af5e07 100644 --- a/TestApps/ArchivingTestApp/ArchivingTestApp.csproj +++ b/TestApps/ArchivingTestApp/ArchivingTestApp.csproj @@ -4,6 +4,8 @@ WinExe net8.0-windows enable + false + false true enable latest diff --git a/TestApps/ClipboardTestApp/ClipboardTestApp.csproj b/TestApps/ClipboardTestApp/ClipboardTestApp.csproj index e033ed396..439d72787 100644 --- a/TestApps/ClipboardTestApp/ClipboardTestApp.csproj +++ b/TestApps/ClipboardTestApp/ClipboardTestApp.csproj @@ -2,6 +2,8 @@ WinExe + false + false true true