diff --git a/docs/anonymous-types.md b/docs/anonymous-types.md
index c4b46c70fc..4097f821e1 100644
--- a/docs/anonymous-types.md
+++ b/docs/anonymous-types.md
@@ -37,7 +37,7 @@ public Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
@@ -68,7 +68,7 @@ public Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
@@ -99,7 +99,7 @@ public Task Anon()
});
}
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/build-server.md b/docs/build-server.md
index 4eedcd033a..4808e5372b 100644
--- a/docs/build-server.md
+++ b/docs/build-server.md
@@ -104,5 +104,5 @@ if (BuildServerDetector.Detected)
});
}
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/clipboard.md b/docs/clipboard.md
index f01b4f7dca..9820ec0731 100644
--- a/docs/clipboard.md
+++ b/docs/clipboard.md
@@ -25,7 +25,7 @@ The clipboard behavior can be enabled using the following:
```cs
ClipboardAccept.Enable();
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/serializer-settings.md b/docs/serializer-settings.md
index facc4cea42..23a6d6cd2a 100644
--- a/docs/serializer-settings.md
+++ b/docs/serializer-settings.md
@@ -493,7 +493,7 @@ settings.DontScrubGuids();
settings.DontScrubDateTimes();
await Verify(target, settings);
```
-snippet source | anchor
+snippet source | anchor
```cs
await Verify(target)
@@ -501,15 +501,7 @@ await Verify(target)
.DontScrubGuids()
.DontScrubDateTimes();
```
-snippet source | anchor
-
-```cs
-await Verify(target)
- .DontIgnoreEmptyCollections()
- .DontScrubGuids()
- .DontScrubDateTimes();
-```
-snippet source | anchor
+snippet source | anchor
@@ -526,7 +518,7 @@ Extra Json.NET settings can be made:
VerifierSettings.AddExtraSettings(
_ => _.TypeNameHandling = TypeNameHandling.All);
```
-snippet source | anchor
+snippet source | anchor
@@ -539,7 +531,7 @@ var settings = new VerifySettings();
settings.AddExtraSettings(
_ => _.TypeNameHandling = TypeNameHandling.All);
```
-snippet source | anchor
+snippet source | anchor
@@ -557,7 +549,7 @@ class CompanyConverter :
writer.WriteMember(company, company.Name, "Name");
}
```
-snippet source | anchor
+snippet source | anchor
@@ -566,7 +558,7 @@ class CompanyConverter :
VerifierSettings.AddExtraSettings(
_ => _.Converters.Add(new CompanyConverter()));
```
-snippet source | anchor
+snippet source | anchor
@@ -1699,7 +1691,7 @@ Extra types can be added to this mapping:
VerifierSettings.TreatAsString(
(target, settings) => target.Property);
```
-snippet source | anchor
+snippet source | anchor
diff --git a/docs/verify-options.md b/docs/verify-options.md
index befc011a80..78d9cb2c71 100644
--- a/docs/verify-options.md
+++ b/docs/verify-options.md
@@ -22,7 +22,7 @@ This can be done using `AutoVerify()`:
var settings = new VerifySettings();
settings.AutoVerify();
```
-snippet source | anchor
+snippet source | anchor
Or globally
@@ -74,7 +74,7 @@ public Task OnHandlersSample()
return Verify("value");
}
```
-snippet source | anchor
+snippet source | anchor
@@ -93,5 +93,5 @@ To disable diff launching:
var settings = new VerifySettings();
settings.DisableDiff();
```
-snippet source | anchor
+snippet source | anchor
diff --git a/readme.md b/readme.md
index 1f73b9eb37..2756f0551e 100644
--- a/readme.md
+++ b/readme.md
@@ -341,7 +341,7 @@ await Verify(
Bars = await repo.GetBars(id),
});
```
-snippet source | anchor
+snippet source | anchor
diff --git a/src/Verify.MSTest.Tests/VerifyObjectSamples.cs b/src/Verify.MSTest.Tests/VerifyObjectSamples.cs
index 7facc0177f..07e6f03814 100644
--- a/src/Verify.MSTest.Tests/VerifyObjectSamples.cs
+++ b/src/Verify.MSTest.Tests/VerifyObjectSamples.cs
@@ -9,29 +9,6 @@ namespace TheTests;
public class VerifyObjectSamples :
VerifyBase
{
- // ReSharper disable once UnusedMember.Local
- async Task ChangeDefaultsPerVerification(object target)
- {
- #region ChangeDefaultsPerVerification
-
- var settings = new VerifySettings();
- settings.DontIgnoreEmptyCollections();
- settings.DontScrubGuids();
- settings.DontScrubDateTimes();
- await Verify(target, settings);
-
- #endregion
-
- #region ChangeDefaultsPerVerification
-
- await Verify(target)
- .DontIgnoreEmptyCollections()
- .DontScrubGuids()
- .DontScrubDateTimes();
-
- #endregion
- }
-
[TestMethod]
public Task ScopedSerializer()
{
diff --git a/src/Verify.NUnit.Tests/VerifyObjectSamples.cs b/src/Verify.NUnit.Tests/VerifyObjectSamples.cs
index b603e3499d..e409880f4e 100644
--- a/src/Verify.NUnit.Tests/VerifyObjectSamples.cs
+++ b/src/Verify.NUnit.Tests/VerifyObjectSamples.cs
@@ -7,19 +7,6 @@
[TestFixture]
public class VerifyObjectSamples
{
- // ReSharper disable once UnusedMember.Local
- async Task ChangeDefaultsPerVerification(object target)
- {
- #region ChangeDefaultsPerVerification
-
- await Verify(target)
- .DontIgnoreEmptyCollections()
- .DontScrubGuids()
- .DontScrubDateTimes();
-
- #endregion
- }
-
[Test]
public Task ScopedSerializer()
{
diff --git a/src/Verify.Tests/Snippets/Snippets.cs b/src/Verify.Tests/Snippets/Snippets.cs
index 4dc990f1a4..bec8c6b79b 100644
--- a/src/Verify.Tests/Snippets/Snippets.cs
+++ b/src/Verify.Tests/Snippets/Snippets.cs
@@ -2,6 +2,28 @@
public class Snippets
{
+ // ReSharper disable once UnusedMember.Local
+ async Task ChangeDefaultsPerVerification(object target)
+ {
+ #region ChangeDefaultsPerVerification
+
+ var settings = new VerifySettings();
+ settings.DontIgnoreEmptyCollections();
+ settings.DontScrubGuids();
+ settings.DontScrubDateTimes();
+ await Verify(target, settings);
+
+ #endregion
+ #region ChangeDefaultsPerVerification
+
+ await Verify(target)
+ .DontIgnoreEmptyCollections()
+ .DontScrubGuids()
+ .DontScrubDateTimes();
+
+ #endregion
+ }
+
// ReSharper disable once UnusedMember.Local
void EnableClipboard()
{
diff --git a/src/Verify.Xunit.Tests/VerifyObjectSamples.cs b/src/Verify.Xunit.Tests/VerifyObjectSamples.cs
index 07375fc26d..e11c4492e3 100644
--- a/src/Verify.Xunit.Tests/VerifyObjectSamples.cs
+++ b/src/Verify.Xunit.Tests/VerifyObjectSamples.cs
@@ -7,19 +7,6 @@
[UsesVerify]
public class VerifyObjectSamples
{
- // ReSharper disable once UnusedMember.Local
- async Task ChangeDefaultsPerVerification(object target)
- {
- #region ChangeDefaultsPerVerificationXunit
-
- var settings = new VerifySettings();
- settings.DontIgnoreEmptyCollections();
- settings.DontScrubGuids();
- settings.DontScrubDateTimes();
- await Verify(target, settings);
-
- #endregion
- }
[Fact]
public Task ScopedSerializer()