11using System . Text . Json . Nodes ;
2+
23using NUnit . Framework ;
34
45namespace System . Text . Json . JsonDiffPatch . Nunit
@@ -8,7 +9,7 @@ namespace System.Text.Json.JsonDiffPatch.Nunit
89 /// </summary>
910 public static class JsonAssert
1011 {
11- private static readonly JsonSerializerOptions SerializerOptions = new ( ) { WriteIndented = true } ;
12+ private static readonly JsonSerializerOptions SerializerOptions = new ( ) { WriteIndented = true } ;
1213
1314 /// <summary>
1415 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
@@ -179,7 +180,7 @@ public static void JsonAreEqual(this Assert assert, string? expected, string? ac
179180 /// <param name="output">Whether to print diff result.</param>
180181 public static void JsonAreEqual ( this Assert assert , string ? expected , string ? actual , bool output )
181182 => AreEqual ( expected , actual , output ) ;
182-
183+
183184 /// <summary>
184185 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
185186 /// the ordering of members in the objects is not significant.
@@ -191,7 +192,7 @@ public static void JsonAreEqual(this Assert assert, string? expected, string? ac
191192 public static void JsonAreEqual ( this Assert assert , string ? expected , string ? actual ,
192193 JsonDiffOptions diffOptions )
193194 => AreEqual ( expected , actual , diffOptions ) ;
194-
195+
195196 /// <summary>
196197 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
197198 /// the ordering of members in the objects is not significant.
@@ -204,7 +205,7 @@ public static void JsonAreEqual(this Assert assert, string? expected, string? ac
204205 public static void JsonAreEqual ( this Assert assert , string ? expected , string ? actual ,
205206 JsonDiffOptions diffOptions , bool output )
206207 => AreEqual ( expected , actual , diffOptions , output ) ;
207-
208+
208209 /// <summary>
209210 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
210211 /// the ordering of members in the objects is not significant.
@@ -230,7 +231,7 @@ public static void JsonAreEqual(this Assert assert, string? expected, string? ac
230231 JsonDiffOptions diffOptions ,
231232 Func < JsonNode , string > outputFormatter )
232233 => AreEqual ( expected , actual , diffOptions , outputFormatter ) ;
233-
234+
234235 /// <summary>
235236 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
236237 /// the ordering of members in the objects is not significant.
@@ -242,7 +243,7 @@ public static void JsonAreEqual(this Assert assert, string? expected, string? ac
242243 public static void JsonAreEqual < T > ( this Assert assert , T ? expected , T ? actual )
243244 where T : JsonNode
244245 => AreEqual ( expected , actual ) ;
245-
246+
246247 /// <summary>
247248 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
248249 /// the ordering of members in the objects is not significant.
@@ -255,7 +256,7 @@ public static void JsonAreEqual<T>(this Assert assert, T? expected, T? actual)
255256 public static void JsonAreEqual < T > ( this Assert assert , T ? expected , T ? actual , bool output )
256257 where T : JsonNode
257258 => AreEqual ( expected , actual , output ) ;
258-
259+
259260 /// <summary>
260261 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
261262 /// the ordering of members in the objects is not significant.
@@ -268,7 +269,7 @@ public static void JsonAreEqual<T>(this Assert assert, T? expected, T? actual, b
268269 public static void JsonAreEqual < T > ( this Assert assert , T ? expected , T ? actual , JsonDiffOptions diffOptions )
269270 where T : JsonNode
270271 => AreEqual ( expected , actual , diffOptions ) ;
271-
272+
272273 /// <summary>
273274 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
274275 /// the ordering of members in the objects is not significant.
@@ -283,7 +284,7 @@ public static void JsonAreEqual<T>(this Assert assert, T? expected, T? actual,
283284 JsonDiffOptions diffOptions , bool output )
284285 where T : JsonNode
285286 => AreEqual ( expected , actual , diffOptions , output ) ;
286-
287+
287288 /// <summary>
288289 /// Tests whether two JSON objects are equal. Note that when comparing the specified objects,
289290 /// the ordering of members in the objects is not significant.
@@ -378,7 +379,7 @@ public static void AreNotEqual(string? expected, string? actual)
378379 public static void AreNotEqual ( string ? expected , string ? actual , JsonDiffOptions diffOptions )
379380 => AreNotEqual ( expected is null ? null : JsonNode . Parse ( expected ) ,
380381 actual is null ? null : JsonNode . Parse ( actual ) , diffOptions ) ;
381-
382+
382383 /// <summary>
383384 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
384385 /// the ordering of members in the objects is not significant.
@@ -389,7 +390,7 @@ public static void AreNotEqual(string? expected, string? actual, JsonDiffOptions
389390 public static void AreNotEqual < T > ( T ? expected , T ? actual )
390391 where T : JsonNode
391392 => HandleAreNotEqual ( expected , actual , null ) ;
392-
393+
393394 /// <summary>
394395 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
395396 /// the ordering of members in the objects is not significant.
@@ -402,7 +403,7 @@ public static void AreNotEqual<T>(T? expected, T? actual, JsonDiffOptions diffOp
402403 where T : JsonNode
403404 => HandleAreNotEqual ( expected , actual ,
404405 diffOptions ?? throw new ArgumentNullException ( nameof ( diffOptions ) ) ) ;
405-
406+
406407 /// <summary>
407408 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
408409 /// the ordering of members in the objects is not significant.
@@ -412,7 +413,7 @@ public static void AreNotEqual<T>(T? expected, T? actual, JsonDiffOptions diffOp
412413 /// <param name="actual">The actual value.</param>
413414 public static void JsonAreNotEqual ( this Assert assert , string ? expected , string ? actual )
414415 => AreNotEqual ( expected , actual ) ;
415-
416+
416417 /// <summary>
417418 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
418419 /// the ordering of members in the objects is not significant.
@@ -424,7 +425,7 @@ public static void JsonAreNotEqual(this Assert assert, string? expected, string?
424425 public static void JsonAreNotEqual ( this Assert assert , string ? expected , string ? actual ,
425426 JsonDiffOptions diffOptions )
426427 => AreNotEqual ( expected , actual , diffOptions ) ;
427-
428+
428429 /// <summary>
429430 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
430431 /// the ordering of members in the objects is not significant.
@@ -436,7 +437,7 @@ public static void JsonAreNotEqual(this Assert assert, string? expected, string?
436437 public static void JsonAreNotEqual < T > ( this Assert assert , T ? expected , T ? actual )
437438 where T : JsonNode
438439 => AreNotEqual ( expected , actual ) ;
439-
440+
440441 /// <summary>
441442 /// Tests whether two JSON objects are not equal. Note that when comparing the specified objects,
442443 /// the ordering of members in the objects is not significant.
0 commit comments