File tree Expand file tree Collapse file tree 1 file changed +40
-6
lines changed
Expand file tree Collapse file tree 1 file changed +40
-6
lines changed Original file line number Diff line number Diff line change @@ -20,30 +20,62 @@ High-performance, low-allocating JSON object diff and patch extension for System
2020
2121## Install
2222
23- #### JsonDiffPatch
23+ ### JsonDiffPatch
2424
25- ```
25+ Using the Package Manager Console:
26+
27+ ``` powershell
2628PM> Install-Package SystemTextJson.JsonDiffPatch
2729```
2830
29- #### xUnit Assert
31+ Using the dotnet CLI:
3032
33+ ``` batch
34+ dotnet add package SystemTextJson.JsonDiffPatch
3135```
36+
37+ ### xUnit Assert
38+
39+ Using the Package Manager Console:
40+
41+ ``` powershell
3242PM> Install-Package SystemTextJson.JsonDiffPatch.Xunit
3343```
3444
35- #### MSTest v2 Assert
45+ Using the dotnet CLI:
3646
47+ ``` batch
48+ dotnet add package SystemTextJson.JsonDiffPatch.Xunit
3749```
50+
51+ ### MSTest v2 Assert
52+
53+ Using the Package Manager Console:
54+
55+ ``` powershell
3856PM> Install-Package SystemTextJson.JsonDiffPatch.MSTest
3957```
4058
41- #### NUnit Assert
59+ Using the dotnet CLI:
4260
61+ ``` batch
62+ dotnet add package SystemTextJson.JsonDiffPatch.MSTest
4363```
64+
65+ ### NUnit Assert
66+
67+ Using the Package Manager Console:
68+
69+ ``` powershell
4470PM> Install-Package SystemTextJson.JsonDiffPatch.NUnit
4571```
4672
73+ Using the dotnet CLI:
74+
75+ ``` batch
76+ dotnet add package SystemTextJson.JsonDiffPatch.NUnit
77+ ```
78+
4779## Usage
4880
4981### Diff
@@ -127,6 +159,7 @@ JsonDiffPatcher.DefaultComparison = JsonElementComparison.Semantic;
127159```
128160
129161### Semantic Value Comparison
162+
130163``` csharp
131164var node1 = JsonNode .Parse (" \" 2019-11-27\" " );
132165var node2 = JsonNode .Parse (" \" 2019-11-27T00:00:00.000\" " );
@@ -165,7 +198,8 @@ Assert.That(actual, JsonIs.NotEqualTo(expected));
165198```
166199
167200Example output _ (when output is enabled)_ :
168- ```
201+
202+ ``` csharp
169203JsonAssert .Equal () failure .
170204Expected :
171205{
You can’t perform that action at this time.
0 commit comments