File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,6 +8,13 @@ namespace TestBuildingBlocks;
88
99public static class FluentMetaExtensions
1010{
11+ private static readonly JsonSerializerOptions MetaSerializerOptions = new ( )
12+ {
13+ WriteIndented = true ,
14+ Encoder = JavaScriptEncoder . UnsafeRelaxedJsonEscaping ,
15+ ReferenceHandler = ReferenceHandler . IgnoreCycles
16+ } ;
17+
1118 /// <summary>
1219 /// Asserts that a "meta" dictionary contains a single element named "total" with the specified value.
1320 /// </summary>
@@ -80,13 +87,6 @@ private static JsonElement GetMetaJsonElement(GenericDictionaryAssertions<IDicti
8087 return value . Should ( ) . BeOfType < JsonElement > ( ) . Subject ;
8188 }
8289
83- private static readonly JsonSerializerOptions MetaSerializerOptions = new ( )
84- {
85- WriteIndented = true ,
86- Encoder = JavaScriptEncoder . UnsafeRelaxedJsonEscaping ,
87- ReferenceHandler = ReferenceHandler . IgnoreCycles
88- } ;
89-
9090 /// <summary>
9191 /// Asserts that the content of a "meta" dictionary matches the expected structure and values, after conversion to JSON.
9292 /// </summary>
You can’t perform that action at this time.
0 commit comments