@@ -156,7 +156,7 @@ To disable this behavior globally use:
156156``` cs
157157VerifierSettings .DontIgnoreEmptyCollections ();
158158```
159- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L851-L855 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignoreemptycollections ' title =' Start of snippet ' >anchor</a ></sup >
159+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L888-L892 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontignoreemptycollections ' title =' Start of snippet ' >anchor</a ></sup >
160160<!-- endSnippet -->
161161
162162
@@ -178,7 +178,7 @@ var target = new GuidTarget
178178
179179await Verify (target );
180180```
181- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1172-L1185 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
181+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1209-L1222 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
182182<!-- endSnippet -->
183183
184184Results in the following:
@@ -203,7 +203,7 @@ Strings containing inline Guids can also be scrubbed. To enable this behavior, u
203203``` cs
204204VerifierSettings .ScrubInlineGuids ();
205205```
206- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L887-L891 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scrubinlineguids ' title =' Start of snippet ' >anchor</a ></sup >
206+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L924-L928 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scrubinlineguids ' title =' Start of snippet ' >anchor</a ></sup >
207207<!-- endSnippet -->
208208
209209
@@ -218,7 +218,7 @@ var settings = new VerifySettings();
218218settings .DontScrubGuids ();
219219await Verify (target , settings );
220220```
221- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L391-L397 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguids ' title =' Start of snippet ' >anchor</a ></sup >
221+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L428-L434 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguids ' title =' Start of snippet ' >anchor</a ></sup >
222222<!-- endSnippet -->
223223
224224Or with the fluent api:
@@ -229,7 +229,7 @@ Or with the fluent api:
229229await Verify (target )
230230 .DontScrubGuids ();
231231```
232- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L405-L410 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguidsfluent ' title =' Start of snippet ' >anchor</a ></sup >
232+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L442-L447 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguidsfluent ' title =' Start of snippet ' >anchor</a ></sup >
233233<!-- endSnippet -->
234234
235235To disable this behavior globally use:
@@ -239,7 +239,7 @@ To disable this behavior globally use:
239239``` cs
240240VerifierSettings .DontScrubGuids ();
241241```
242- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L860-L864 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguidsglobal ' title =' Start of snippet ' >anchor</a ></sup >
242+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L897-L901 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubguidsglobal ' title =' Start of snippet ' >anchor</a ></sup >
243243<!-- endSnippet -->
244244
245245
@@ -267,7 +267,7 @@ var target = new DateTimeTarget
267267
268268await Verify (target );
269269```
270- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L592-L611 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-date ' title =' Start of snippet ' >anchor</a ></sup >
270+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L629-L648 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-date ' title =' Start of snippet ' >anchor</a ></sup >
271271<!-- endSnippet -->
272272
273273Results in the following:
@@ -305,7 +305,7 @@ settings.DontScrubDateTimes();
305305
306306return Verify (target , settings );
307307```
308- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L917-L929 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimes ' title =' Start of snippet ' >anchor</a ></sup >
308+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L954-L966 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimes ' title =' Start of snippet ' >anchor</a ></sup >
309309<!-- endSnippet -->
310310
311311Or using the fluent api use:
@@ -321,7 +321,7 @@ var target = new
321321return Verify (target )
322322 .DontScrubDateTimes ();
323323```
324- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L934-L944 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimesfluent ' title =' Start of snippet ' >anchor</a ></sup >
324+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L971-L981 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimesfluent ' title =' Start of snippet ' >anchor</a ></sup >
325325<!-- endSnippet -->
326326
327327Or globally use:
@@ -331,7 +331,7 @@ Or globally use:
331331``` cs
332332VerifierSettings .DontScrubDateTimes ();
333333```
334- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L949-L953 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimesglobal ' title =' Start of snippet ' >anchor</a ></sup >
334+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L986-L990 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-dontscrubdatetimesglobal ' title =' Start of snippet ' >anchor</a ></sup >
335335<!-- endSnippet -->
336336
337337
@@ -474,7 +474,7 @@ public Task ScopedSerializerFluent()
474474 .AddExtraSettings (_ => _ .TypeNameHandling = TypeNameHandling .All );
475475}
476476```
477- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2491-L2518 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
477+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2528-L2555 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
478478<!-- endSnippet -->
479479
480480Result:
@@ -602,7 +602,7 @@ public Task IgnoreTypeFluent()
602602 .IgnoreMembersWithType <ToIgnoreStruct >();
603603}
604604```
605- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1731-L1836 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
605+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1768-L1873 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
606606<!-- endSnippet -->
607607
608608Or globally:
@@ -612,7 +612,7 @@ Or globally:
612612``` cs
613613VerifierSettings .IgnoreMembersWithType <ToIgnore >();
614614```
615- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1724-L1728 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretypeglobal ' title =' Start of snippet ' >anchor</a ></sup >
615+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1761-L1765 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretypeglobal ' title =' Start of snippet ' >anchor</a ></sup >
616616<!-- endSnippet -->
617617
618618Result:
@@ -683,7 +683,7 @@ public Task AddIgnoreInstanceFluent()
683683 .IgnoreInstance <Instance >(_ => _ .Property == " Ignore" );
684684}
685685```
686- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1652-L1691 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
686+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1689-L1728 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
687687<!-- endSnippet -->
688688
689689Or globally:
@@ -693,7 +693,7 @@ Or globally:
693693``` cs
694694VerifierSettings .IgnoreInstance <Instance >(_ => _ .Property == " Ignore" );
695695```
696- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1645-L1649 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstanceglobal ' title =' Start of snippet ' >anchor</a ></sup >
696+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1682-L1686 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstanceglobal ' title =' Start of snippet ' >anchor</a ></sup >
697697<!-- endSnippet -->
698698
699699Result:
@@ -736,7 +736,7 @@ public Task WithObsoleteProp()
736736 return Verify (target );
737737}
738738```
739- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2457-L2477 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
739+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2494-L2514 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
740740<!-- endSnippet -->
741741
742742Result:
@@ -784,7 +784,7 @@ public Task WithObsoletePropIncludedFluent()
784784 .IncludeObsoletes ();
785785}
786786```
787- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2428-L2455 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
787+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2465-L2492 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
788788<!-- endSnippet -->
789789
790790Or globally:
@@ -794,7 +794,7 @@ Or globally:
794794``` cs
795795VerifierSettings .IncludeObsoletes ();
796796```
797- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2421-L2425 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincludedglobally ' title =' Start of snippet ' >anchor</a ></sup >
797+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2458-L2462 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincludedglobally ' title =' Start of snippet ' >anchor</a ></sup >
798798<!-- endSnippet -->
799799
800800Result:
@@ -855,7 +855,7 @@ public Task IgnoreMemberByExpressionFluent()
855855 _ => _ .PropertyThatThrows );
856856}
857857```
858- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2016-L2055 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
858+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2053-L2092 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
859859<!-- endSnippet -->
860860
861861Or globally
@@ -870,7 +870,7 @@ VerifierSettings.IgnoreMembers<IgnoreExplicitTarget>(
870870 _ => _ .GetOnlyProperty ,
871871 _ => _ .PropertyThatThrows );
872872```
873- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2004-L2013 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
873+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2041-L2050 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
874874<!-- endSnippet -->
875875
876876Result:
@@ -944,7 +944,7 @@ public Task IgnoreMemberByNameFluent()
944944 .IgnoreMember <IgnoreExplicitTarget >(_ => _ .PropertyThatThrows );
945945}
946946```
947- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2108-L2161 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
947+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2145-L2198 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
948948<!-- endSnippet -->
949949
950950Or globally:
@@ -964,7 +964,7 @@ VerifierSettings.IgnoreMember<IgnoreExplicitTarget>("Field");
964964// For a specific type with expression
965965VerifierSettings .IgnoreMember <IgnoreExplicitTarget >(_ => _ .PropertyThatThrows );
966966```
967- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2091-L2105 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbynameglobal ' title =' Start of snippet ' >anchor</a ></sup >
967+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2128-L2142 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbynameglobal ' title =' Start of snippet ' >anchor</a ></sup >
968968<!-- endSnippet -->
969969
970970Result:
@@ -1011,7 +1011,7 @@ public Task CustomExceptionPropFluent()
10111011 .IgnoreMembersThatThrow <CustomException >();
10121012}
10131013```
1014- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2313-L2332 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
1014+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2350-L2369 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
10151015<!-- endSnippet -->
10161016
10171017Or globally:
@@ -1021,7 +1021,7 @@ Or globally:
10211021``` cs
10221022VerifierSettings .IgnoreMembersThatThrow <CustomException >();
10231023```
1024- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2306-L2310 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowglobal ' title =' Start of snippet ' >anchor</a ></sup >
1024+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2343-L2347 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowglobal ' title =' Start of snippet ' >anchor</a ></sup >
10251025<!-- endSnippet -->
10261026
10271027Result:
@@ -1058,7 +1058,7 @@ public Task ExceptionMessagePropFluent()
10581058 .IgnoreMembersThatThrow <Exception >(_ => _ .Message == " Ignore" );
10591059}
10601060```
1061- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1462-L1483 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
1061+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1499-L1520 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
10621062<!-- endSnippet -->
10631063
10641064Or globally:
@@ -1068,7 +1068,7 @@ Or globally:
10681068``` cs
10691069VerifierSettings .IgnoreMembersThatThrow <Exception >(_ => _ .Message == " Ignore" );
10701070```
1071- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1455-L1459 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
1071+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1492-L1496 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
10721072<!-- endSnippet -->
10731073
10741074Result:
@@ -1234,7 +1234,7 @@ public Task MemberConverterByExpression()
12341234 return Verify (input );
12351235}
12361236```
1237- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2057-L2081 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverter ' title =' Start of snippet ' >anchor</a ></sup >
1237+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L2094-L2118 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverter ' title =' Start of snippet ' >anchor</a ></sup >
12381238<!-- endSnippet -->
12391239
12401240
0 commit comments