code reformat and cleanup
This commit is contained in:
@@ -8,24 +8,24 @@ namespace ParadoxSaveParser.Lib.Tests;
|
||||
[TestOf(typeof(ISearchExpression))]
|
||||
public class SearchExpressionTests
|
||||
{
|
||||
byte[] _smallSaveData;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
_smallSaveData = "EU4txt a={ b={ c=0 d=1 e=2 } f=3 }".ToBytes();
|
||||
}
|
||||
|
||||
|
||||
private static JsonSerializerOptions _smallSaveSerializerOptions = new()
|
||||
private byte[] _smallSaveData;
|
||||
|
||||
|
||||
private static readonly JsonSerializerOptions _smallSaveSerializerOptions = new()
|
||||
{
|
||||
WriteIndented = false,
|
||||
Encoder = JavaScriptEncoder.UnsafeRelaxedJsonEscaping,
|
||||
MaxDepth = 1024,
|
||||
MaxDepth = 1024
|
||||
};
|
||||
|
||||
internal static string JsonToPdx(string json) =>
|
||||
json.Substring(1, json.Length - 2)
|
||||
internal static string JsonToPdx(string json)
|
||||
=> json.Substring(1, json.Length - 2)
|
||||
.Replace(",", " ").Replace("{", "{ ").Replace("}", " }")
|
||||
.Replace("\"", "").Replace("[", "").Replace("]", "").Replace(":", "=");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user