Fix unit tests failing because of windows newlines

This commit is contained in:
Robert McRackan 2022-12-16 09:27:44 -05:00
parent ba676be46d
commit 4197db6af9
2 changed files with 2 additions and 1 deletions

View File

@ -179,6 +179,7 @@ namespace FileManager
}
catch (Exception exDebug)
{
Serilog.Log.Logger.Debug(exDebug, "Silent failure");
return false;
}

View File

@ -23,7 +23,7 @@ namespace AccountsTests
{
public class AccountsTestBase
{
protected const string EMPTY_FILE = "{\r\n \"Accounts\": []\r\n}";
protected string EMPTY_FILE { get; } = "{\r\n \"Accounts\": []\r\n}".Replace("\r\n", Environment.NewLine);
protected string TestFile;
protected Locale usLocale => Localization.Get("us");