@@ -54,7 +54,7 @@ TheTarget target = new()
54
54
};
55
55
await Verifier .Verify (target );
56
56
```
57
- <sup ><a href =' /src/StrictJsonTests/Tests.cs#L34-L42 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usestrictjsonverify ' title =' Start of snippet ' >anchor</a ></sup >
57
+ <sup ><a href =' /src/StrictJsonTests/Tests.cs#L41-L49 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-usestrictjsonverify ' title =' Start of snippet ' >anchor</a ></sup >
58
58
<!-- endSnippet -->
59
59
60
60
The resulting file will be:
@@ -104,7 +104,7 @@ To disable this behavior globally use:
104
104
``` cs
105
105
VerifierSettings .ModifySerialization (_ => _ .DontIgnoreEmptyCollections ());
106
106
```
107
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L371-L375 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignoreemptycollections ' title =' Start of snippet ' >anchor</a ></sup >
107
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L372-L376 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignoreemptycollections ' title =' Start of snippet ' >anchor</a ></sup >
108
108
<!-- endSnippet -->
109
109
110
110
@@ -126,7 +126,7 @@ GuidTarget target = new()
126
126
127
127
await Verifier .Verify (target );
128
128
```
129
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L577-L590 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
129
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L578-L591 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
130
130
<!-- endSnippet -->
131
131
132
132
Results in the following:
@@ -151,7 +151,7 @@ To disable this behavior globally use:
151
151
``` cs
152
152
VerifierSettings .ModifySerialization (_ => _ .DontScrubGuids ());
153
153
```
154
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L380-L384 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguids ' title =' Start of snippet ' >anchor</a ></sup >
154
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L381-L385 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguids ' title =' Start of snippet ' >anchor</a ></sup >
155
155
<!-- endSnippet -->
156
156
157
157
Strings containing inline Guids can also be scrubbed. To enable this behavior, use:
@@ -161,7 +161,7 @@ Strings containing inline Guids can also be scrubbed. To enable this behavior, u
161
161
``` cs
162
162
VerifierSettings .ScrubInlineGuids ();
163
163
```
164
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L389-L393 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scrubinlineguids ' title =' Start of snippet ' >anchor</a ></sup >
164
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L390-L394 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scrubinlineguids ' title =' Start of snippet ' >anchor</a ></sup >
165
165
<!-- endSnippet -->
166
166
167
167
@@ -186,7 +186,7 @@ DateTimeTarget target = new()
186
186
187
187
await Verifier .Verify (target );
188
188
```
189
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L34-L50 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-date ' title =' Start of snippet ' >anchor</a ></sup >
189
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L35-L51 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-date ' title =' Start of snippet ' >anchor</a ></sup >
190
190
<!-- endSnippet -->
191
191
192
192
Results in the following:
@@ -213,7 +213,7 @@ To disable this behavior globally use:
213
213
``` cs
214
214
VerifierSettings .ModifySerialization (_ => _ .DontScrubDateTimes ());
215
215
```
216
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L398-L402 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimes ' title =' Start of snippet ' >anchor</a ></sup >
216
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L399-L403 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimes ' title =' Start of snippet ' >anchor</a ></sup >
217
217
<!-- endSnippet -->
218
218
219
219
@@ -228,7 +228,7 @@ To disable this behavior globally use:
228
228
``` cs
229
229
VerifierSettings .ModifySerialization (_ => _ .DontIgnoreFalse ());
230
230
```
231
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L407-L411 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignorefalse ' title =' Start of snippet ' >anchor</a ></sup >
231
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L408-L412 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignorefalse ' title =' Start of snippet ' >anchor</a ></sup >
232
232
<!-- endSnippet -->
233
233
234
234
@@ -382,7 +382,7 @@ public Task ScopedSerializerFluent()
382
382
_ => { _ .TypeNameHandling = TypeNameHandling .All ; });
383
383
}
384
384
```
385
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1346-L1375 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
385
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1374-L1403 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
386
386
<!-- endSnippet -->
387
387
388
388
Result:
@@ -445,7 +445,7 @@ public async Task IgnoreTypeFluent()
445
445
446
446
}
447
447
```
448
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L851-L891 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
448
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L852-L892 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
449
449
<!-- endSnippet -->
450
450
451
451
Result:
@@ -509,7 +509,7 @@ public async Task AddIgnoreInstanceFluent()
509
509
_ => { _ .IgnoreInstance <Instance >(x => x .Property == " Ignore" ); });
510
510
}
511
511
```
512
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L797-L838 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
512
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L798-L839 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
513
513
<!-- endSnippet -->
514
514
515
515
Result:
@@ -553,7 +553,7 @@ public Task WithObsoleteProp()
553
553
return Verifier .Verify (target );
554
554
}
555
555
```
556
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1307-L1328 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
556
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1335-L1356 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
557
557
<!-- endSnippet -->
558
558
559
559
Result:
@@ -601,7 +601,7 @@ public Task WithObsoletePropIncludedFluent()
601
601
.ModifySerialization (_ => { _ .IncludeObsoletes (); });
602
602
}
603
603
```
604
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1278-L1305 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
604
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1306-L1333 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
605
605
<!-- endSnippet -->
606
606
607
607
Result:
@@ -666,7 +666,7 @@ public async Task IgnoreMemberByExpressionFluent()
666
666
});
667
667
}
668
668
```
669
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L979-L1022 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
669
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L980-L1023 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
670
670
<!-- endSnippet -->
671
671
672
672
Result:
@@ -734,7 +734,7 @@ public async Task IgnoreMemberByNameFluent()
734
734
});
735
735
}
736
736
```
737
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1072-L1119 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
737
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1073-L1120 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
738
738
<!-- endSnippet -->
739
739
740
740
Result:
@@ -780,7 +780,7 @@ public async Task CustomExceptionPropFluent()
780
780
.ModifySerialization (_ => _ .IgnoreMembersThatThrow <CustomException >());
781
781
}
782
782
```
783
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1178-L1197 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
783
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1206-L1225 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
784
784
<!-- endSnippet -->
785
785
786
786
Result:
@@ -820,7 +820,7 @@ public async Task ExceptionMessagePropFluent()
820
820
_ => _ .IgnoreMembersThatThrow <Exception >(x => x .Message == " Ignore" ));
821
821
}
822
822
```
823
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L743-L767 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
823
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L744-L768 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
824
824
<!-- endSnippet -->
825
825
826
826
Result:
0 commit comments