From 4763db84442bfe257c97fa9239c8429dde8a5e3b Mon Sep 17 00:00:00 2001 From: danielaparker Date: Thu, 29 Jul 2021 13:56:09 -0400 Subject: [PATCH] Fixed JsonPath tests --- doc_source/log.txt | 1 + docs/manifest.json | 34 +++++----- ...onCons.JsonPath.JsonPathExecutionMode.html | 4 +- .../JsonCons.JsonPath.JsonPathOptions.html | 24 +++---- ...nCons.JsonPath.JsonPathParseException.html | 16 ++--- docs/ref/JsonCons.JsonPath.JsonSelector.html | 32 ++++----- docs/ref/JsonCons.JsonPath.NodeSortBy.html | 4 +- .../ref/JsonCons.JsonPath.NormalizedPath.html | 52 +++++++------- .../JsonCons.JsonPath.NormalizedPathNode.html | 44 ++++++------ ...nCons.JsonPath.NormalizedPathNodeKind.html | 4 +- docs/ref/JsonCons.JsonPath.PathValuePair.html | 24 +++---- ...ns.Utilities.IntegerTokenUnflattening.html | 4 +- ...sonCons.Utilities.JsonElementComparer.html | 20 +++--- ...Utilities.JsonElementEqualityComparer.html | 16 ++--- .../ref/JsonCons.Utilities.JsonFlattener.html | 12 ++-- .../JsonCons.Utilities.JsonMergePatch.html | 8 +-- docs/ref/JsonCons.Utilities.JsonPatch.html | 12 ++-- ...JsonCons.Utilities.JsonPatchException.html | 12 ++-- docs/ref/JsonCons.Utilities.JsonPointer.html | 68 +++++++++---------- .../JsonCons.JsonPath.Tests.csproj | 2 - tests/JsonPath.Tests/JsonPathTestSuite.cs | 4 +- tests/JsonPath.Tests/NormalizedPathTests.cs | 36 +++++----- 22 files changed, 216 insertions(+), 217 deletions(-) diff --git a/doc_source/log.txt b/doc_source/log.txt index cfdbe0e..9511257 100644 --- a/doc_source/log.txt +++ b/doc_source/log.txt @@ -1,2 +1,3 @@ {"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Users\\danie\\source\\repos\\JsonCons.Net\\src\\JsonCons.Utilities\\JsonCons.Utilities.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Users/danie/source/repos/JsonCons.Net/src/JsonCons.JsonPath/JsonCons.JsonPath.csproj","date_time":"2021-07-29T17:14:59.7638442Z","message_severity":"warning","correlation_id":"56951259-162F-45AA-932F-BE16A950BB66.1.1.5"} {"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Users\\danie\\source\\repos\\JsonCons.Net\\src\\JsonCons.Utilities\\JsonCons.Utilities.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Users/danie/source/repos/JsonCons.Net/src/JsonCons.JsonPath/JsonCons.JsonPath.csproj","date_time":"2021-07-29T17:45:17.1448396Z","message_severity":"warning","correlation_id":"B1F264E0-3E9A-45C2-AB71-AD660D747D23.1.1.5"} +{"message":"Workspace failed with: [Warning] Found project reference without a matching metadata reference: C:\\Users\\danie\\source\\repos\\JsonCons.Net\\src\\JsonCons.Utilities\\JsonCons.Utilities.csproj","source":"MetadataCommand.ExtractMetadata","file":"C:/Users/danie/source/repos/JsonCons.Net/src/JsonCons.JsonPath/JsonCons.JsonPath.csproj","date_time":"2021-07-29T17:50:29.3773346Z","message_severity":"warning","correlation_id":"F409EC3D-677C-4562-9FC0-862F7FD6658A.1.1.5"} diff --git a/docs/manifest.json b/docs/manifest.json index ddfcdca..c65e339 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -345,7 +345,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.JsonPathExecutionMode.html", - "hash": "cOQfoGeW9t9BmvAdP745ogZ6Yh1ECZHvQGfz0lPLGqw=" + "hash": "kXD5fTcIAltlrxYFAheZ/C+kEZAL0iL2+oCq2uP4loo=" } }, "is_incremental": false, @@ -357,7 +357,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.JsonPathOptions.html", - "hash": "bUFFsf1r1mLznDrwJVeJcRn2dGPCa9OBzNpUNuWyOpw=" + "hash": "krMmu5Uta5f6iHSwI9lvxIPtKlJ4eWgr27Xgi76uQF8=" } }, "is_incremental": false, @@ -369,7 +369,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.JsonPathParseException.html", - "hash": "DVQLNCX4Z8tsxbKV26R8WXwngBZ7cPW4GRwZICE7BeA=" + "hash": "kOm/go+Fc9kv9YnZi5qa/I1k7tmkVXJ4FyixgUDDslM=" } }, "is_incremental": false, @@ -381,7 +381,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.JsonSelector.html", - "hash": "MVg/o5bsotzr+bOah925EbZpYjg3oGnQaA37+Q+F+aA=" + "hash": "jOsSogcw4tKvk+9bgeUSuVlx68V7iP0Imaazer2W1ew=" } }, "is_incremental": false, @@ -393,7 +393,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.NodeSortBy.html", - "hash": "IxGVTi0uyXzQHpoW3FlFx1QrrI6UxL4vsqAIbDD3GT4=" + "hash": "pp/k2kutjWmofmbOyzLLDIxRtLFK3TqYLUxu29e/Vck=" } }, "is_incremental": false, @@ -405,7 +405,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.NormalizedPath.html", - "hash": "sDpk7khh0y3iAQAGE71ozWQqPmPQ7NVAUt2jJvSM5u0=" + "hash": "nH3RlHj80EUewiag1TETuGWlGzqpCIpplBPuzd3n3CU=" } }, "is_incremental": false, @@ -417,7 +417,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.NormalizedPathNode.html", - "hash": "xykumFd4WA1JSXQfq+D7hf9Hx/lJqJ9FNeJ0aWYlMHw=" + "hash": "QTQVk3x/ewTYv1FFzblOK1ocVpYlnJYsUvwOvyvzeD0=" } }, "is_incremental": false, @@ -429,7 +429,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.NormalizedPathNodeKind.html", - "hash": "lamtSm6sdCjJgA4F1mM+iqELDV0k7N/DRuS7KHheyjU=" + "hash": "itMUr1IDfbOYP2ZQt/HVvpeJ1sPA/d5enlz9evC33Yk=" } }, "is_incremental": false, @@ -441,7 +441,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.JsonPath.PathValuePair.html", - "hash": "w264vWX+bleKIU4FGqbdQto+AaVju90xPLg+SuJ0pfs=" + "hash": "uf1KI9HW7PlucKP5hR7oeR4PImKwPXmOGGKclLLaPE4=" } }, "is_incremental": false, @@ -465,7 +465,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.IntegerTokenUnflattening.html", - "hash": "Q3+JnT+9zvDm22cBpz2dlmqRkXR+eDH9rKk6kSVNIs8=" + "hash": "ZTHnIH1vz/CJHSL0hfdki+kZQ8zE2IDLR6uKVg8/GMs=" } }, "is_incremental": false, @@ -477,7 +477,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonElementComparer.html", - "hash": "MKFxRUKxpwZPlpQy9CW0l2UA3Kd2CwTKBxeSoieqNdU=" + "hash": "2EkfBuGjKs5Eb6SGXHlUhberwbpCUkc/yXmfr19Nvlg=" } }, "is_incremental": false, @@ -489,7 +489,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonElementEqualityComparer.html", - "hash": "h3A4rOXZX/9lSw+R/U4H4zn6ciNxWsc6jWcU5ER9QNM=" + "hash": "HwdJXnye92XGX/i2Pr5w0YOW0ca/TIwDbJC31M8upVA=" } }, "is_incremental": false, @@ -501,7 +501,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonFlattener.html", - "hash": "fuX4vV2PEipwnhCihsHTnmYebuEcvSo/rAcd2QvD/Js=" + "hash": "SmQvi0cwnR1C9XtJUfeAVLbdmUYQm+rLIIYQhtcAN+c=" } }, "is_incremental": false, @@ -513,7 +513,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonMergePatch.html", - "hash": "sSgX+JeSOcecvbqXQ+5l8fPqJBCWlqR8BVH2r2D2yqE=" + "hash": "giBGq4qR9AJk4PEnTT7BMXRu73JxGODOXuvvmHmVMi8=" } }, "is_incremental": false, @@ -525,7 +525,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonPatch.html", - "hash": "Tu/gIlHqZ6QkHjDSi1UfHgFaCtBs3sqbYb8fG4KOMws=" + "hash": "duL1kzJSI/rkDV4StlJf5d9AGI0SpBhRs35ukMumaJs=" } }, "is_incremental": false, @@ -537,7 +537,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonPatchException.html", - "hash": "aDtcfAKpJu3Dv1BaQaJpgR6kEp3Mp2uXEGRxtIvlLMM=" + "hash": "6ePdRpSMjEwTUkcA/CB0ifCLzSBEd7n8EFLomgqXoaA=" } }, "is_incremental": false, @@ -549,7 +549,7 @@ "output": { ".html": { "relative_path": "ref/JsonCons.Utilities.JsonPointer.html", - "hash": "f8zYiVgRdfqwgVNGiNTmo6+O2F7jkG/L/DCHZirBvwY=" + "hash": "NNSeBtpITPsBnBRCHnL/B/J9nVHy4Oe2YR6Nq6jFKY8=" } }, "is_incremental": false, diff --git a/docs/ref/JsonCons.JsonPath.JsonPathExecutionMode.html b/docs/ref/JsonCons.JsonPath.JsonPathExecutionMode.html index b56f0a4..c39a885 100644 --- a/docs/ref/JsonCons.JsonPath.JsonPathExecutionMode.html +++ b/docs/ref/JsonCons.JsonPath.JsonPathExecutionMode.html @@ -112,10 +112,10 @@

Fields diff --git a/docs/ref/JsonCons.JsonPath.JsonPathOptions.html b/docs/ref/JsonCons.JsonPath.JsonPathOptions.html index 61d156d..807ade9 100644 --- a/docs/ref/JsonCons.JsonPath.JsonPathOptions.html +++ b/docs/ref/JsonCons.JsonPath.JsonPathOptions.html @@ -115,10 +115,10 @@

Fields

| - Improve this Doc + Improve this Doc - View Source + View Source

Default

Gets a singleton instance of JsonPathOptions. NoDuplicates is false, @@ -148,10 +148,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

ExecutionMode

@@ -179,10 +179,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

MaxDepth

@@ -210,10 +210,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

NoDuplicates

@@ -241,10 +241,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

SortBy

@@ -278,10 +278,10 @@
Property Value
diff --git a/docs/ref/JsonCons.JsonPath.JsonPathParseException.html b/docs/ref/JsonCons.JsonPath.JsonPathParseException.html index 2aa8b96..2ec0d23 100644 --- a/docs/ref/JsonCons.JsonPath.JsonPathParseException.html +++ b/docs/ref/JsonCons.JsonPath.JsonPathParseException.html @@ -150,10 +150,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

ColumnNumber

@@ -181,10 +181,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

LineNumber

@@ -214,10 +214,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

ToString()

@@ -258,10 +258,10 @@

Implements

diff --git a/docs/ref/JsonCons.JsonPath.JsonSelector.html b/docs/ref/JsonCons.JsonPath.JsonSelector.html index 361de32..344d250 100644 --- a/docs/ref/JsonCons.JsonPath.JsonSelector.html +++ b/docs/ref/JsonCons.JsonPath.JsonSelector.html @@ -220,10 +220,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

Parse(String)

@@ -292,10 +292,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

Select(JsonElement, JsonPathOptions)

@@ -365,10 +365,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

Select(JsonElement, String, JsonPathOptions)

@@ -455,10 +455,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

SelectNodes(JsonElement, JsonPathOptions)

@@ -513,10 +513,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

SelectNodes(JsonElement, String, JsonPathOptions)

@@ -604,10 +604,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

SelectPaths(JsonElement, JsonPathOptions)

@@ -661,10 +661,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

SelectPaths(JsonElement, String, JsonPathOptions)

@@ -757,10 +757,10 @@
Exceptions
diff --git a/docs/ref/JsonCons.JsonPath.NodeSortBy.html b/docs/ref/JsonCons.JsonPath.NodeSortBy.html index 08f219a..d7dadc2 100644 --- a/docs/ref/JsonCons.JsonPath.NodeSortBy.html +++ b/docs/ref/JsonCons.JsonPath.NodeSortBy.html @@ -117,10 +117,10 @@

Fields diff --git a/docs/ref/JsonCons.JsonPath.NormalizedPath.html b/docs/ref/JsonCons.JsonPath.NormalizedPath.html index 07f91b4..f1b887f 100644 --- a/docs/ref/JsonCons.JsonPath.NormalizedPath.html +++ b/docs/ref/JsonCons.JsonPath.NormalizedPath.html @@ -113,10 +113,10 @@

Constructors

| - Improve this Doc + Improve this Doc - View Source + View Source

NormalizedPath(NormalizedPathNode)

@@ -148,10 +148,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Last

@@ -181,10 +181,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

CompareTo(NormalizedPath)

@@ -234,10 +234,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

ContainsValue(JsonElement)

@@ -285,10 +285,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(NormalizedPath)

@@ -335,10 +335,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(Object)

@@ -387,10 +387,10 @@
Overrides
System.Object.Equals(System.Object)
| - Improve this Doc + Improve this Doc - View Source + View Source

GetEnumerator()

@@ -418,10 +418,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

GetHashCode()

@@ -452,10 +452,10 @@
Overrides
System.Object.GetHashCode()
| - Improve this Doc + Improve this Doc - View Source + View Source

ToJsonPointer()

@@ -485,10 +485,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

ToString()

@@ -520,10 +520,10 @@
Overrides
System.Object.ToString()
| - Improve this Doc + Improve this Doc - View Source + View Source

TryGetValue(JsonElement, out JsonElement)

@@ -580,10 +580,10 @@

Explicit Interface Implementations

| - Improve this Doc + Improve this Doc - View Source + View Source

IEnumerable.GetEnumerator()

@@ -629,10 +629,10 @@

Implements

diff --git a/docs/ref/JsonCons.JsonPath.NormalizedPathNode.html b/docs/ref/JsonCons.JsonPath.NormalizedPathNode.html index 281d9da..0a3df35 100644 --- a/docs/ref/JsonCons.JsonPath.NormalizedPathNode.html +++ b/docs/ref/JsonCons.JsonPath.NormalizedPathNode.html @@ -112,10 +112,10 @@

Constructors

| - Improve this Doc + Improve this Doc - View Source + View Source

NormalizedPathNode(NormalizedPathNode, Int32)

@@ -168,10 +168,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

NormalizedPathNode(NormalizedPathNode, String)

@@ -227,10 +227,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

ComponentKind

@@ -258,10 +258,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

Current

@@ -289,10 +289,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

Parent

@@ -320,10 +320,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

Root

@@ -353,10 +353,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

CompareTo(NormalizedPathNode)

@@ -403,10 +403,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

GetHashCode()

@@ -437,10 +437,10 @@
Overrides
System.Object.GetHashCode()
| - Improve this Doc + Improve this Doc - View Source + View Source

GetIndex()

@@ -468,10 +468,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

GetName()

@@ -505,10 +505,10 @@
Returns
diff --git a/docs/ref/JsonCons.JsonPath.NormalizedPathNodeKind.html b/docs/ref/JsonCons.JsonPath.NormalizedPathNodeKind.html index 371b1b9..65cbae3 100644 --- a/docs/ref/JsonCons.JsonPath.NormalizedPathNodeKind.html +++ b/docs/ref/JsonCons.JsonPath.NormalizedPathNodeKind.html @@ -117,10 +117,10 @@

Fields diff --git a/docs/ref/JsonCons.JsonPath.PathValuePair.html b/docs/ref/JsonCons.JsonPath.PathValuePair.html index 168e73b..aed186c 100644 --- a/docs/ref/JsonCons.JsonPath.PathValuePair.html +++ b/docs/ref/JsonCons.JsonPath.PathValuePair.html @@ -109,10 +109,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Path

@@ -140,10 +140,10 @@
Property Value
| - Improve this Doc + Improve this Doc - View Source + View Source

Value

@@ -173,10 +173,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

CompareTo(PathValuePair)

@@ -225,10 +225,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(PathValuePair)

@@ -273,10 +273,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

GetHashCode()

@@ -320,10 +320,10 @@

Implements

diff --git a/docs/ref/JsonCons.Utilities.IntegerTokenUnflattening.html b/docs/ref/JsonCons.Utilities.IntegerTokenUnflattening.html index a00af30..3215eda 100644 --- a/docs/ref/JsonCons.Utilities.IntegerTokenUnflattening.html +++ b/docs/ref/JsonCons.Utilities.IntegerTokenUnflattening.html @@ -200,10 +200,10 @@

Fields diff --git a/docs/ref/JsonCons.Utilities.JsonElementComparer.html b/docs/ref/JsonCons.Utilities.JsonElementComparer.html index b6996a9..bcf981b 100644 --- a/docs/ref/JsonCons.Utilities.JsonElementComparer.html +++ b/docs/ref/JsonCons.Utilities.JsonElementComparer.html @@ -120,10 +120,10 @@

Constructors

| - Improve this Doc + Improve this Doc - View Source + View Source

JsonElementComparer()

@@ -138,10 +138,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Instance

@@ -171,10 +171,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

Compare(JsonElement, JsonElement)

@@ -271,10 +271,10 @@

Explicit Interface Implementations

| - Improve this Doc + Improve this Doc - View Source + View Source

IComparer.Compare(Object, Object)

@@ -336,10 +336,10 @@

Implements

diff --git a/docs/ref/JsonCons.Utilities.JsonElementEqualityComparer.html b/docs/ref/JsonCons.Utilities.JsonElementEqualityComparer.html index 1a18571..083d6c2 100644 --- a/docs/ref/JsonCons.Utilities.JsonElementEqualityComparer.html +++ b/docs/ref/JsonCons.Utilities.JsonElementEqualityComparer.html @@ -119,10 +119,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Instance

@@ -152,10 +152,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(JsonElement, JsonElement)

@@ -238,10 +238,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

GetHashCode(JsonElement)

@@ -297,10 +297,10 @@

Implements

diff --git a/docs/ref/JsonCons.Utilities.JsonFlattener.html b/docs/ref/JsonCons.Utilities.JsonFlattener.html index 0ffa982..83c8111 100644 --- a/docs/ref/JsonCons.Utilities.JsonFlattener.html +++ b/docs/ref/JsonCons.Utilities.JsonFlattener.html @@ -172,10 +172,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

Flatten(JsonElement)

@@ -227,10 +227,10 @@
| - Improve this Doc + Improve this Doc - View Source + View Source

Unflatten(JsonElement, IntegerTokenUnflattening)

@@ -313,10 +313,10 @@
Exceptions
diff --git a/docs/ref/JsonCons.Utilities.JsonMergePatch.html b/docs/ref/JsonCons.Utilities.JsonMergePatch.html index b39b8ba..8712f8f 100644 --- a/docs/ref/JsonCons.Utilities.JsonMergePatch.html +++ b/docs/ref/JsonCons.Utilities.JsonMergePatch.html @@ -201,10 +201,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

ApplyMergePatch(JsonElement, JsonElement)

@@ -267,10 +267,10 @@
diff --git a/docs/ref/JsonCons.Utilities.JsonPatch.html b/docs/ref/JsonCons.Utilities.JsonPatch.html index 4e689f9..c7e9c3b 100644 --- a/docs/ref/JsonCons.Utilities.JsonPatch.html +++ b/docs/ref/JsonCons.Utilities.JsonPatch.html @@ -188,10 +188,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

ApplyPatch(JsonElement, JsonElement)

@@ -269,10 +269,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

FromDiff(JsonElement, JsonElement)

@@ -335,10 +335,10 @@
diff --git a/docs/ref/JsonCons.Utilities.JsonPatchException.html b/docs/ref/JsonCons.Utilities.JsonPatchException.html index 719cf30..742233c 100644 --- a/docs/ref/JsonCons.Utilities.JsonPatchException.html +++ b/docs/ref/JsonCons.Utilities.JsonPatchException.html @@ -153,10 +153,10 @@

Constructors

| - Improve this Doc + Improve this Doc - View Source + View Source

JsonPatchException(String, String)

@@ -195,10 +195,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Operation

@@ -236,10 +236,10 @@

Implements

diff --git a/docs/ref/JsonCons.Utilities.JsonPointer.html b/docs/ref/JsonCons.Utilities.JsonPointer.html index 70ae61f..411b276 100644 --- a/docs/ref/JsonCons.Utilities.JsonPointer.html +++ b/docs/ref/JsonCons.Utilities.JsonPointer.html @@ -153,10 +153,10 @@

Constructors

| - Improve this Doc + Improve this Doc - View Source + View Source

JsonPointer(IReadOnlyList<String>)

@@ -189,10 +189,10 @@

Properties

| - Improve this Doc + Improve this Doc - View Source + View Source

Tokens

@@ -222,10 +222,10 @@

Methods

| - Improve this Doc + Improve this Doc - View Source + View Source

ContainsValue(JsonElement)

@@ -271,10 +271,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

ContainsValue(JsonElement, String)

@@ -341,10 +341,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(JsonPointer)

@@ -391,10 +391,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

Equals(Object)

@@ -441,10 +441,10 @@
Overrides
System.Object.Equals(System.Object)
| - Improve this Doc + Improve this Doc - View Source + View Source

Escape(String)

@@ -505,10 +505,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

GetEnumerator()

@@ -537,10 +537,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

GetHashCode()

@@ -571,10 +571,10 @@
Overrides
System.Object.GetHashCode()
| - Improve this Doc + Improve this Doc - View Source + View Source

Parse(String)

@@ -643,10 +643,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

ToString()

@@ -677,10 +677,10 @@
Overrides
System.Object.ToString()
| - Improve this Doc + Improve this Doc - View Source + View Source

ToUriFragment()

@@ -709,10 +709,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

TryGetValue(JsonElement, String, out JsonElement)

@@ -784,10 +784,10 @@
Exceptions
| - Improve this Doc + Improve this Doc - View Source + View Source

TryGetValue(JsonElement, out JsonElement)

@@ -838,10 +838,10 @@
Returns
| - Improve this Doc + Improve this Doc - View Source + View Source

TryParse(String, out JsonPointer)

@@ -913,10 +913,10 @@

Explicit Interface Implementations

| - Improve this Doc + Improve this Doc - View Source + View Source

IEnumerable.GetEnumerator()

@@ -959,10 +959,10 @@

Implements

diff --git a/tests/JsonPath.Tests/JsonCons.JsonPath.Tests.csproj b/tests/JsonPath.Tests/JsonCons.JsonPath.Tests.csproj index 19c4a9a..c29b605 100644 --- a/tests/JsonPath.Tests/JsonCons.JsonPath.Tests.csproj +++ b/tests/JsonPath.Tests/JsonCons.JsonPath.Tests.csproj @@ -7,8 +7,6 @@ - - diff --git a/tests/JsonPath.Tests/JsonPathTestSuite.cs b/tests/JsonPath.Tests/JsonPathTestSuite.cs index 8ef38d3..1ebe983 100644 --- a/tests/JsonPath.Tests/JsonPathTestSuite.cs +++ b/tests/JsonPath.Tests/JsonPathTestSuite.cs @@ -48,7 +48,7 @@ public void RunJsonPathTests(string path) } if (testCase.TryGetProperty("sort", out element) && element.ValueKind == JsonValueKind.True) { - options.SortByPath = true; + options.SortBy = NodeSortBy.Path; } var exprElement = testCase.GetProperty("expression"); @@ -83,7 +83,7 @@ public void RunJsonPathTests(string path) { Debug.WriteLine("nodups"); } - if (options.SortByPath) + if (options.SortBy == NodeSortBy.Path) { Debug.WriteLine("sort"); } diff --git a/tests/JsonPath.Tests/NormalizedPathTests.cs b/tests/JsonPath.Tests/NormalizedPathTests.cs index 62cd8e7..2fb801f 100644 --- a/tests/JsonPath.Tests/NormalizedPathTests.cs +++ b/tests/JsonPath.Tests/NormalizedPathTests.cs @@ -9,15 +9,15 @@ public class PathNodeTests [TestMethod] public void TestNormalizedPathEquals() { - PathNode node1 = PathNode.Root; - PathNode node2 = new PathNode(node1,"foo"); - PathNode node3 = new PathNode(node2,"bar"); - PathNode node4 = new PathNode(node3,0); + NormalizedPathNode node1 = NormalizedPathNode.Root; + NormalizedPathNode node2 = new NormalizedPathNode(node1,"foo"); + NormalizedPathNode node3 = new NormalizedPathNode(node2,"bar"); + NormalizedPathNode node4 = new NormalizedPathNode(node3,0); - PathNode node11 = PathNode.Root; - PathNode node12 = new PathNode(node11,"foo"); - PathNode node13 = new PathNode(node12,"bar"); - PathNode node14 = new PathNode(node13,0); + NormalizedPathNode node11 = NormalizedPathNode.Root; + NormalizedPathNode node12 = new NormalizedPathNode(node11,"foo"); + NormalizedPathNode node13 = new NormalizedPathNode(node12,"bar"); + NormalizedPathNode node14 = new NormalizedPathNode(node13,0); NormalizedPath path1 = new NormalizedPath(node4); @@ -29,10 +29,10 @@ public void TestNormalizedPathEquals() [TestMethod] public void TestNormalizedPathToString() { - PathNode node1 = PathNode.Root; - PathNode node2 = new PathNode(node1,"foo"); - PathNode node3 = new PathNode(node2,"bar"); - PathNode node4 = new PathNode(node3,0); + NormalizedPathNode node1 = NormalizedPathNode.Root; + NormalizedPathNode node2 = new NormalizedPathNode(node1,"foo"); + NormalizedPathNode node3 = new NormalizedPathNode(node2,"bar"); + NormalizedPathNode node4 = new NormalizedPathNode(node3,0); NormalizedPath path1 = new NormalizedPath(node4); Assert.IsTrue(path1.ToString().Equals(@"$['foo']['bar'][0]")); @@ -41,10 +41,10 @@ public void TestNormalizedPathToString() [TestMethod] public void TestNormalizedPathWithSolidusToString() { - PathNode node1 = PathNode.Root; - PathNode node2 = new PathNode(node1,"foo's"); - PathNode node3 = new PathNode(node2,"bar"); - PathNode node4 = new PathNode(node3,0); + NormalizedPathNode node1 = NormalizedPathNode.Root; + NormalizedPathNode node2 = new NormalizedPathNode(node1,"foo's"); + NormalizedPathNode node3 = new NormalizedPathNode(node2,"bar"); + NormalizedPathNode node4 = new NormalizedPathNode(node3,0); NormalizedPath path = new NormalizedPath(node4); Assert.IsTrue(path.ToString().Equals(@"$['foo\'s']['bar'][0]")); @@ -53,8 +53,8 @@ public void TestNormalizedPathWithSolidusToString() [TestMethod] public void TestNormalizedPathToJsonPointer() { - PathNode node1 = PathNode.Root; - PathNode node2 = new PathNode(node1,"a/b"); + NormalizedPathNode node1 = NormalizedPathNode.Root; + NormalizedPathNode node2 = new NormalizedPathNode(node1,"a/b"); NormalizedPath path = new NormalizedPath(node2); Assert.IsTrue(path.ToJsonPointer().Equals(@"/a~1b"));