@@ -184,7 +184,7 @@ var target = new GuidTarget
184
184
185
185
await Verifier .Verify (target );
186
186
```
187
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L957-L970 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
187
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L958-L971 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-guid ' title =' Start of snippet ' >anchor</a ></sup >
188
188
<!-- endSnippet -->
189
189
190
190
Results in the following:
@@ -595,7 +595,7 @@ public Task ScopedSerializerFluent()
595
595
_ => { _ .TypeNameHandling = TypeNameHandling .All ; });
596
596
}
597
597
```
598
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1889-L1918 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
598
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1890-L1919 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-scopedserializer ' title =' Start of snippet ' >anchor</a ></sup >
599
599
<!-- endSnippet -->
600
600
601
601
Result:
@@ -658,7 +658,7 @@ public Task IgnoreTypeFluent()
658
658
659
659
}
660
660
```
661
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1275-L1315 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
661
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1276-L1316 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretype ' title =' Start of snippet ' >anchor</a ></sup >
662
662
<!-- endSnippet -->
663
663
664
664
Or globally:
@@ -669,7 +669,7 @@ Or globally:
669
669
VerifierSettings .ModifySerialization (
670
670
_ => _ .IgnoreMembersWithType <ToIgnore >());
671
671
```
672
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1267-L1272 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretypeglobal ' title =' Start of snippet ' >anchor</a ></sup >
672
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1268-L1273 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoretypeglobal ' title =' Start of snippet ' >anchor</a ></sup >
673
673
<!-- endSnippet -->
674
674
675
675
Result:
@@ -733,7 +733,7 @@ public Task AddIgnoreInstanceFluent()
733
733
_ => { _ .IgnoreInstance <Instance >(x => x .Property == " Ignore" ); });
734
734
}
735
735
```
736
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1211-L1252 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
736
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1212-L1253 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstance ' title =' Start of snippet ' >anchor</a ></sup >
737
737
<!-- endSnippet -->
738
738
739
739
Or globally:
@@ -744,7 +744,7 @@ Or globally:
744
744
VerifierSettings .ModifySerialization (
745
745
_ => { _ .IgnoreInstance <Instance >(x => x .Property == " Ignore" ); });
746
746
```
747
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1203-L1208 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstanceglobal ' title =' Start of snippet ' >anchor</a ></sup >
747
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1204-L1209 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-addignoreinstanceglobal ' title =' Start of snippet ' >anchor</a ></sup >
748
748
<!-- endSnippet -->
749
749
750
750
Result:
@@ -788,7 +788,7 @@ public Task WithObsoleteProp()
788
788
return Verifier .Verify (target );
789
789
}
790
790
```
791
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1850-L1871 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
791
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1851-L1872 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoleteprop ' title =' Start of snippet ' >anchor</a ></sup >
792
792
<!-- endSnippet -->
793
793
794
794
Result:
@@ -836,7 +836,7 @@ public Task WithObsoletePropIncludedFluent()
836
836
.ModifySerialization (_ => { _ .IncludeObsoletes (); });
837
837
}
838
838
```
839
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1821-L1848 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
839
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1822-L1849 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincluded ' title =' Start of snippet ' >anchor</a ></sup >
840
840
<!-- endSnippet -->
841
841
842
842
Or globally:
@@ -846,7 +846,7 @@ Or globally:
846
846
``` cs
847
847
VerifierSettings .ModifySerialization (_ => { _ .IncludeObsoletes (); });
848
848
```
849
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1814-L1818 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincludedglobally ' title =' Start of snippet ' >anchor</a ></sup >
849
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1815-L1819 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-withobsoletepropincludedglobally ' title =' Start of snippet ' >anchor</a ></sup >
850
850
<!-- endSnippet -->
851
851
852
852
Result:
@@ -911,7 +911,7 @@ public Task IgnoreMemberByExpressionFluent()
911
911
});
912
912
}
913
913
```
914
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1418-L1461 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
914
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1419-L1462 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpression ' title =' Start of snippet ' >anchor</a ></sup >
915
915
<!-- endSnippet -->
916
916
917
917
Or globally
@@ -928,7 +928,7 @@ VerifierSettings.ModifySerialization(_ =>
928
928
_ .IgnoreMember <IgnoreExplicitTarget >(x => x .PropertyThatThrows );
929
929
});
930
930
```
931
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1404-L1415 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
931
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1405-L1416 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
932
932
<!-- endSnippet -->
933
933
934
934
Result:
@@ -996,7 +996,7 @@ public Task IgnoreMemberByNameFluent()
996
996
});
997
997
}
998
998
```
999
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1545-L1592 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
999
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1546-L1593 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbyname ' title =' Start of snippet ' >anchor</a ></sup >
1000
1000
<!-- endSnippet -->
1001
1001
1002
1002
Or globally:
@@ -1014,7 +1014,7 @@ VerifierSettings.ModifySerialization(_ =>
1014
1014
_ .IgnoreMember (type , " PropertyThatThrows" );
1015
1015
});
1016
1016
```
1017
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1530-L1542 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbynameglobal ' title =' Start of snippet ' >anchor</a ></sup >
1017
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1531-L1543 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignorememberbynameglobal ' title =' Start of snippet ' >anchor</a ></sup >
1018
1018
<!-- endSnippet -->
1019
1019
1020
1020
Result:
@@ -1060,7 +1060,7 @@ public Task CustomExceptionPropFluent()
1060
1060
.ModifySerialization (_ => _ .IgnoreMembersThatThrow <CustomException >());
1061
1061
}
1062
1062
```
1063
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1711-L1730 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
1063
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1712-L1731 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrow ' title =' Start of snippet ' >anchor</a ></sup >
1064
1064
<!-- endSnippet -->
1065
1065
1066
1066
Or globally:
@@ -1070,7 +1070,7 @@ Or globally:
1070
1070
``` cs
1071
1071
VerifierSettings .ModifySerialization (_ => _ .IgnoreMembersThatThrow <CustomException >());
1072
1072
```
1073
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1704-L1708 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowglobal ' title =' Start of snippet ' >anchor</a ></sup >
1073
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1705-L1709 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowglobal ' title =' Start of snippet ' >anchor</a ></sup >
1074
1074
<!-- endSnippet -->
1075
1075
1076
1076
Result:
@@ -1109,7 +1109,7 @@ public Task ExceptionMessagePropFluent()
1109
1109
_ => _ .IgnoreMembersThatThrow <Exception >(x => x .Message == " Ignore" ));
1110
1110
}
1111
1111
```
1112
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1148-L1171 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
1112
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1149-L1172 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpression ' title =' Start of snippet ' >anchor</a ></sup >
1113
1113
<!-- endSnippet -->
1114
1114
1115
1115
Or globally:
@@ -1120,7 +1120,7 @@ Or globally:
1120
1120
VerifierSettings .ModifySerialization (
1121
1121
_ => _ .IgnoreMembersThatThrow <Exception >(x => x .Message == " Ignore" ));
1122
1122
```
1123
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1140-L1145 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
1123
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1141-L1146 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-ignoremembersthatthrowexpressionglobal ' title =' Start of snippet ' >anchor</a ></sup >
1124
1124
<!-- endSnippet -->
1125
1125
1126
1126
Result:
@@ -1273,7 +1273,7 @@ public Task MemberConverterByExpressionFluent()
1273
1273
});
1274
1274
}
1275
1275
```
1276
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1464-L1503 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverter ' title =' Start of snippet ' >anchor</a ></sup >
1276
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1465-L1504 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverter ' title =' Start of snippet ' >anchor</a ></sup >
1277
1277
<!-- endSnippet -->
1278
1278
1279
1279
This can also be configured globally:
@@ -1291,7 +1291,7 @@ VerifierSettings.ModifySerialization(_ =>
1291
1291
(target , value ) => value + " Suffix" );
1292
1292
});
1293
1293
```
1294
- <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1507-L1519 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverterglobal ' title =' Start of snippet ' >anchor</a ></sup >
1294
+ <sup ><a href =' /src/Verify.Tests/Serialization/SerializationTests.cs#L1508-L1520 ' title =' Snippet source file ' >snippet source</a > | <a href =' #snippet-memberconverterglobal ' title =' Start of snippet ' >anchor</a ></sup >
1295
1295
<!-- endSnippet -->
1296
1296
1297
1297
0 commit comments