From d6aaef58ebd37b2bc23365e2dde01acfa65d690b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vaillant?= Date: Fri, 19 Jul 2024 12:50:59 +0200 Subject: [PATCH 1/2] Added information about IgnoreNode using JSON path not supported --- docs/preview/02-Features/02-assertion.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/preview/02-Features/02-assertion.md b/docs/preview/02-Features/02-assertion.md index b41535ec..3f318bab 100644 --- a/docs/preview/02-Features/02-assertion.md +++ b/docs/preview/02-Features/02-assertion.md @@ -129,6 +129,8 @@ AssertJson.Equal(..., options => }); ``` +> 💡 IgnoreNode from a JSON path is currently unsupported by Arcus.Testing. As workaround you can use Newtonsoft.Json library to parse the JSON string and remove the node before using the AssertJson.Equal method. + ### Loading JSON nodes yourself The JSON assertion equalization can be called directly with raw contents - internally it parses to a valid JSON structure: `JsonNode`. If you want to compare two JSON nodes with different serialization settings, you can load the two nodes separately and do the equalization on the loaded nodes. From 2cf3bce5e018defa0455ae6cea1f0eab26bd5b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Vaillant?= Date: Fri, 19 Jul 2024 14:23:09 +0200 Subject: [PATCH 2/2] Update docs/preview/02-Features/02-assertion.md --- docs/preview/02-Features/02-assertion.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/preview/02-Features/02-assertion.md b/docs/preview/02-Features/02-assertion.md index 3f318bab..c13cfc23 100644 --- a/docs/preview/02-Features/02-assertion.md +++ b/docs/preview/02-Features/02-assertion.md @@ -129,7 +129,7 @@ AssertJson.Equal(..., options => }); ``` -> 💡 IgnoreNode from a JSON path is currently unsupported by Arcus.Testing. As workaround you can use Newtonsoft.Json library to parse the JSON string and remove the node before using the AssertJson.Equal method. +> 💡 `IgnoreNode` from a JSON path is currently unsupported by Arcus.Testing. As workaround you can use [Newtonsoft.Json](https://www.newtonsoft.com/json) library to parse the JSON string and remove the node before using the `AssertJson.Equal` method. ### Loading JSON nodes yourself The JSON assertion equalization can be called directly with raw contents - internally it parses to a valid JSON structure: `JsonNode`. If you want to compare two JSON nodes with different serialization settings, you can load the two nodes separately and do the equalization on the loaded nodes.