You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -429,42 +405,75 @@ public AndConstraint<JTokenAssertions> HaveCount(int expected, string because =
429
405
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
430
406
/// </param>
431
407
/// <param name="becauseArgs">
432
-
/// Zero or more objects to format using the placeholders in <see cref="because"/>.
408
+
/// Zero or more objects to format using the placeholders in <paramref name="because"/>.
433
409
/// </param>
434
410
/// <remarks>Use this method to match the current <see cref="JToken"/> against an arbitrary subtree,
435
411
/// permitting it to contain any additional properties or elements. This way we can test multiple properties on a <see cref="JObject"/> at once,
436
412
/// or test if a <see cref="JArray"/> contains any items that match a set of properties, assert that a JSON document has a given shape, etc. </remarks>
437
413
/// <example>
438
414
/// This example asserts the values of multiple properties of a child object within a JSON document.
/// <example>This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties</example>
420
+
/// <example>
421
+
/// This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties
/// Recursively asserts that the current <see cref="JToken"/> contains at least the properties or elements of the specified <paramref name="subtree"/>.
436
+
/// </summary>
437
+
/// <param name="subtree">The subtree to search for</param>
438
+
/// <param name="config">The options to consider while asserting values</param>
439
+
/// <param name="because">
440
+
/// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
441
+
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
442
+
/// </param>
443
+
/// <param name="becauseArgs">
444
+
/// Zero or more objects to format using the placeholders in <paramref name="because"/>.
445
+
/// </param>
446
+
/// <remarks>Use this method to match the current <see cref="JToken"/> against an arbitrary subtree,
447
+
/// permitting it to contain any additional properties or elements. This way we can test multiple properties on a <see cref="JObject"/> at once,
448
+
/// or test if a <see cref="JArray"/> contains any items that match a set of properties, assert that a JSON document has a given shape, etc. </remarks>
449
+
/// <example>
450
+
/// This example asserts the values of multiple properties of a child object within a JSON document using a specified double precision.
/// This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties, using a specified double precision.
/// Recursively asserts that the current <see cref="JToken"/> contains at least the properties or elements of the specified <paramref name="subtree"/>.
470
479
/// </summary>
@@ -474,28 +483,87 @@ public AndConstraint<JTokenAssertions> ContainSubtree(string subtree, string bec
474
483
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
475
484
/// </param>
476
485
/// <param name="becauseArgs">
477
-
/// Zero or more objects to format using the placeholders in <see cref="because"/>.
486
+
/// Zero or more objects to format using the placeholders in <paramref name="because"/>.
478
487
/// </param>
479
488
/// <remarks>Use this method to match the current <see cref="JToken"/> against an arbitrary subtree,
480
489
/// permitting it to contain any additional properties or elements. This way we can test multiple properties on a <see cref="JObject"/> at once,
481
490
/// or test if a <see cref="JArray"/> contains any items that match a set of properties, assert that a JSON document has a given shape, etc. </remarks>
482
491
/// <example>
483
492
/// This example asserts the values of multiple properties of a child object within a JSON document.
/// <example>This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties</example>
498
+
/// <example>
499
+
/// This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties
/// Recursively asserts that the current <see cref="JToken"/> contains at least the properties or elements of the specified <paramref name="subtree"/>.
512
+
/// </summary>
513
+
/// <param name="subtree">The subtree to search for</param>
514
+
/// <param name="config">The options to consider while asserting values</param>
515
+
/// <param name="because">
516
+
/// A formatted phrase as is supported by <see cref="string.Format(string,object[])" /> explaining why the assertion
517
+
/// is needed. If the phrase does not start with the word <i>because</i>, it is prepended automatically.
518
+
/// </param>
519
+
/// <param name="becauseArgs">
520
+
/// Zero or more objects to format using the placeholders in <paramref name="because"/>.
521
+
/// </param>
522
+
/// <remarks>Use this method to match the current <see cref="JToken"/> against an arbitrary subtree,
523
+
/// permitting it to contain any additional properties or elements. This way we can test multiple properties on a <see cref="JObject"/> at once,
524
+
/// or test if a <see cref="JArray"/> contains any items that match a set of properties, assert that a JSON document has a given shape, etc. </remarks>
525
+
/// <example>
526
+
/// This example asserts the values of multiple properties of a child object within a JSON document, using a specified double precision.
/// This example asserts that a <see cref="JArray"/> within a <see cref="JObject"/> has at least one element with at least the given properties, using a specified double precision.
0 commit comments