Suppress warnings
This commit is contained in:
parent
47968304c9
commit
357b220ace
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@ -68,8 +69,9 @@ namespace LibationAvalonia
|
|||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception exDebug)
|
||||||
{
|
{
|
||||||
|
Serilog.Log.Logger.Debug(exDebug, "Silent failure");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -21,7 +21,8 @@ using Newtonsoft.Json.Linq;
|
|||||||
|
|
||||||
namespace AccountsTests
|
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);
|
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
|
// account.Id + Locale.Name -- must be unique
|
||||||
[TestClass]
|
[TestClass]
|
||||||
public class validate : AccountsTestBase
|
public class validate : AccountsTestBase
|
||||||
{
|
{
|
||||||
[TestMethod]
|
[TestMethod]
|
||||||
public void violate_validation()
|
public void violate_validation()
|
||||||
{
|
{
|
||||||
@ -590,4 +591,5 @@ namespace AccountsTests
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#pragma warning restore CS8981
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user