From eb3c641646f0945f59f862168a125480f1f30905 Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sun, 14 Feb 2021 10:51:39 +0000 Subject: [PATCH] Docs changes --- docs/clipboard.md | 28 +--------------------------- docs/naming.md | 2 +- docs/serializer-settings.md | 10 +++++----- docs/verify-options.md | 2 +- 4 files changed, 8 insertions(+), 34 deletions(-) diff --git a/docs/clipboard.md b/docs/clipboard.md index 4cf555d665..78f330baa9 100644 --- a/docs/clipboard.md +++ b/docs/clipboard.md @@ -58,38 +58,12 @@ Add a variable named `Verify.DeleteCommand` where `{0}` will be replaced with th The clipboard behavior can be disable using the following: - -### Per Test - - - -```cs -VerifySettings settings = new(); -settings.DisableClipboard(); -``` -snippet source | anchor - - - -### For all tests - ```cs VerifierSettings.DisableClipboard(); ``` -snippet source | anchor - - -If clipboard is disabled for all tests, it can be re-enabled at the test level: - - - -```cs -VerifySettings settings = new(); -settings.EnableClipboard(); -``` -snippet source | anchor +snippet source | anchor diff --git a/docs/naming.md b/docs/naming.md index 355a5fc5ae..4894d6dbb5 100644 --- a/docs/naming.md +++ b/docs/naming.md @@ -482,7 +482,7 @@ VerifierSettings.DerivePathInfo( methodName: method.Name); }); ``` -snippet source | anchor +snippet source | anchor Return null to any of the values to use the standard behavior. The returned path can be relative to the directory sourceFile exists in. diff --git a/docs/serializer-settings.md b/docs/serializer-settings.md index e40b4e6266..ade41ac1aa 100644 --- a/docs/serializer-settings.md +++ b/docs/serializer-settings.md @@ -320,7 +320,7 @@ VerifierSettings.AddExtraSettings(_ => _.TypeNameHandling = TypeNameHandling.All; }); ``` -snippet source | anchor +snippet source | anchor @@ -336,7 +336,7 @@ settings.AddExtraSettings(_ => _.TypeNameHandling = TypeNameHandling.All; }); ``` -snippet source | anchor +snippet source | anchor @@ -363,7 +363,7 @@ class CompanyConverter : } } ``` -snippet source | anchor +snippet source | anchor @@ -375,7 +375,7 @@ VerifierSettings.AddExtraSettings( _.Converters.Add(new CompanyConverter()); }); ``` -snippet source | anchor +snippet source | anchor @@ -930,7 +930,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 1b556c2d6e..00f4301790 100644 --- a/docs/verify-options.md +++ b/docs/verify-options.md @@ -22,7 +22,7 @@ This can be done using `AutoVerify()`: VerifySettings settings = new(); settings.AutoVerify(); ``` -snippet source | anchor +snippet source | anchor Note that auto accepted changes in `.verified.` files remain visible in source control tooling.