[UnitTest] Include fields when marshalling JSON in filesystem tests.

This commit is contained in:
2022-12-09 13:33:15 +00:00
parent 0253ea97aa
commit 1bdaf241e4
2 changed files with 4 additions and 2 deletions

View File

@@ -214,7 +214,8 @@ public abstract class BlockMediaImageTest : BaseMediaImageTest
MaxDepth = 1536, // More than this an we get a StackOverflowException
WriteIndented = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
PropertyNameCaseInsensitive = true
PropertyNameCaseInsensitive = true,
IncludeFields = true
};
var sr = new FileStream(expectedDataFilename, FileMode.Open);

View File

@@ -84,7 +84,8 @@ public abstract class FsExtractHashIssueTest
MaxDepth = 1536, // More than this an we get a StackOverflowException
WriteIndented = true,
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
PropertyNameCaseInsensitive = true
PropertyNameCaseInsensitive = true,
IncludeFields = true
};
var sr = new FileStream($"{TestFile}.unittest.json", FileMode.Open);