Fix unit tests failing because of windows newlines
This commit is contained in:
parent
ba676be46d
commit
4197db6af9
@ -179,6 +179,7 @@ namespace FileManager
|
|||||||
}
|
}
|
||||||
catch (Exception exDebug)
|
catch (Exception exDebug)
|
||||||
{
|
{
|
||||||
|
Serilog.Log.Logger.Debug(exDebug, "Silent failure");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -23,7 +23,7 @@ namespace AccountsTests
|
|||||||
{
|
{
|
||||||
public class AccountsTestBase
|
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 string TestFile;
|
||||||
protected Locale usLocale => Localization.Get("us");
|
protected Locale usLocale => Localization.Get("us");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user