Skip to content

Commit 1e41276

Browse files
committed
format README.md
1 parent 3b8d7a2 commit 1e41276

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

README.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff 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
2628
PM> 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
3242
PM> 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
3856
PM> 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
4470
PM> 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
131164
var node1 = JsonNode.Parse("\"2019-11-27\"");
132165
var node2 = JsonNode.Parse("\"2019-11-27T00:00:00.000\"");
@@ -165,7 +198,8 @@ Assert.That(actual, JsonIs.NotEqualTo(expected));
165198
```
166199

167200
Example output _(when output is enabled)_:
168-
```
201+
202+
```csharp
169203
JsonAssert.Equal() failure.
170204
Expected:
171205
{

0 commit comments

Comments
 (0)