From 357b220aceb318a9715ed60e1b5b83e8dc3a2130 Mon Sep 17 00:00:00 2001 From: Michael Bucari-Tovo Date: Mon, 19 Dec 2022 09:48:18 -0700 Subject: [PATCH] Suppress warnings --- Source/LibationAvalonia/Program.cs | 4 +++- Source/_Tests/AudibleUtilities.Tests/AccountTests.cs | 8 +++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Source/LibationAvalonia/Program.cs b/Source/LibationAvalonia/Program.cs index 6df5f735..2718b8b3 100644 --- a/Source/LibationAvalonia/Program.cs +++ b/Source/LibationAvalonia/Program.cs @@ -1,4 +1,5 @@ using System; +using System.Diagnostics; using System.IO; using System.Linq; using System.Threading.Tasks; @@ -68,8 +69,9 @@ namespace LibationAvalonia return true; } - catch (Exception ex) + catch (Exception exDebug) { + Serilog.Log.Logger.Debug(exDebug, "Silent failure"); return false; } } diff --git a/Source/_Tests/AudibleUtilities.Tests/AccountTests.cs b/Source/_Tests/AudibleUtilities.Tests/AccountTests.cs index ca2081a4..8f29b4e1 100644 --- a/Source/_Tests/AudibleUtilities.Tests/AccountTests.cs +++ b/Source/_Tests/AudibleUtilities.Tests/AccountTests.cs @@ -21,7 +21,8 @@ using Newtonsoft.Json.Linq; namespace AccountsTests { - public class AccountsTestBase +#pragma warning disable CS8981 // The type name only contains lower-cased ascii characters. Such names may become reserved for the language. + public class AccountsTestBase { protected string EMPTY_FILE { get; } = "{\r\n \"Accounts\": []\r\n}".Replace("\r\n", Environment.NewLine); @@ -514,8 +515,8 @@ namespace AccountsTests // account.Id + Locale.Name -- must be unique [TestClass] - public class validate : AccountsTestBase - { + public class validate : AccountsTestBase + { [TestMethod] public void violate_validation() { @@ -590,4 +591,5 @@ namespace AccountsTests } } } +#pragma warning restore CS8981 }