diff --git a/docs/compared-to-approvaltests.md b/docs/compared-to-approvaltests.md index 7dd2b62c9d..13c1ea5664 100644 --- a/docs/compared-to-approvaltests.md +++ b/docs/compared-to-approvaltests.md @@ -39,4 +39,4 @@ When a test fails verification: * The command to accept the new verified is copied to the clipboard. * The difference between the received and verified files is displayed in a diff tool. -In ApprovalTests both these features are opt-in through a attributes. +In ApprovalTests both these features are opt-in through attributes. diff --git a/docs/mdsource/compared-to-approvaltests.source.md b/docs/mdsource/compared-to-approvaltests.source.md index f0f512b61a..1761e9bedd 100644 --- a/docs/mdsource/compared-to-approvaltests.source.md +++ b/docs/mdsource/compared-to-approvaltests.source.md @@ -32,4 +32,4 @@ When a test fails verification: * The command to accept the new verified is copied to the clipboard. * The difference between the received and verified files is displayed in a diff tool. -In ApprovalTests both these features are opt-in through a attributes. \ No newline at end of file +In ApprovalTests both these features are opt-in through attributes. \ No newline at end of file diff --git a/docs/mdsource/readme.source.md b/docs/mdsource/readme.source.md index 826b6e848e..2831ec3b59 100644 --- a/docs/mdsource/readme.source.md +++ b/docs/mdsource/readme.source.md @@ -6,4 +6,4 @@ * [Scrubbers](scrubbers.md) * [Diff Tool](diff-tool.md) * [Using anonymous types](anonymous-types.md) - * [Compared To ApprovalTests](compared-to-approvaltests.md) \ No newline at end of file + * [Compared oo ApprovalTests](compared-to-approvaltests.md) \ No newline at end of file diff --git a/docs/mdsource/scrubbers.source.md b/docs/mdsource/scrubbers.source.md index 43fdd2e757..21002cd0ef 100644 --- a/docs/mdsource/scrubbers.source.md +++ b/docs/mdsource/scrubbers.source.md @@ -10,9 +10,9 @@ They can be defined at three levels: Multiple scrubbers can bee defined at each level. -Scrubber are excited in reveres order. So the most recent added method scrubber through to earlies added global scrubber. +Scrubber are excited in reveres order. So the most recent added method scrubber through to earliest added global scrubber. -Global scrubbers should be defined only once at appdomain startup. +Global scrubbers should be defined only once at appdomain startup. In this example the scrubber is configured using the [Global Setup](https://github.com/SimonCropp/XunitContext#global-setup) of [XunitContext](https://github.com/SimonCropp/XunitContext). It could also be configured using a [Module Initializer](https://github.com/Fody/ModuleInit). Usage: diff --git a/docs/readme.md b/docs/readme.md index 1fe31144f9..7d55a7cae9 100644 --- a/docs/readme.md +++ b/docs/readme.md @@ -13,4 +13,4 @@ To change this file edit the source file and then run MarkdownSnippets. * [Scrubbers](scrubbers.md) * [Diff Tool](diff-tool.md) * [Using anonymous types](anonymous-types.md) - * [Compared To ApprovalTests](compared-to-approvaltests.md) + * [Compared oo ApprovalTests](compared-to-approvaltests.md) diff --git a/docs/scrubbers.md b/docs/scrubbers.md index dddac5f536..d8ef67f78c 100644 --- a/docs/scrubbers.md +++ b/docs/scrubbers.md @@ -17,9 +17,9 @@ They can be defined at three levels: Multiple scrubbers can bee defined at each level. -Scrubber are excited in reveres order. So the most recent added method scrubber through to earlies added global scrubber. +Scrubber are excited in reveres order. So the most recent added method scrubber through to earliest added global scrubber. -Global scrubbers should be defined only once at appdomain startup. +Global scrubbers should be defined only once at appdomain startup. In this example the scrubber is configured using the [Global Setup](https://github.com/SimonCropp/XunitContext#global-setup) of [XunitContext](https://github.com/SimonCropp/XunitContext). It could also be configured using a [Module Initializer](https://github.com/Fody/ModuleInit). Usage: @@ -59,16 +59,17 @@ public class ScrubbersSample : AddScrubber(s => s.Replace("Three", "C")); } - public static class ModuleInitializer + [GlobalSetUp] + public static class GlobalSetup { - public static void Initialize() + public static void Setup() { Global.AddScrubber(s => s.Replace("One", "A")); } } } ``` -[snippet source](/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs#L1-L41) / [anchor](#snippet-scrubberssample.cs) +[snippet source](/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs#L1-L42) / [anchor](#snippet-scrubberssample.cs) Results: diff --git a/readme.md b/readme.md index 62f1562795..cd1970aa9d 100644 --- a/readme.md +++ b/readme.md @@ -29,7 +29,7 @@ Verification tool to enable simple approval of complex models using [Json.net](h * [Scrubbers](docs/scrubbers.md) * [Diff Tool](docs/diff-tool.md) * [Using anonymous types](docs/anonymous-types.md) - * [Compared To ApprovalTests](docs/compared-to-approvaltests.md) + * [Compared to ApprovalTests](docs/compared-to-approvaltests.md) ## NuGet package diff --git a/readme.source.md b/readme.source.md index ea5be8dc9f..ca8b5d3c63 100644 --- a/readme.source.md +++ b/readme.source.md @@ -12,7 +12,7 @@ toc * [Scrubbers](docs/scrubbers.md) * [Diff Tool](docs/diff-tool.md) * [Using anonymous types](docs/anonymous-types.md) - * [Compared To ApprovalTests](docs/compared-to-approvaltests.md) + * [Compared to ApprovalTests](docs/compared-to-approvaltests.md) ## NuGet package diff --git a/src/Verify.Xunit.Tests/FodyWeavers.xml b/src/Verify.Xunit.Tests/FodyWeavers.xml deleted file mode 100644 index 2e936c5ff0..0000000000 --- a/src/Verify.Xunit.Tests/FodyWeavers.xml +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs b/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs index 977b176397..f9dca096f0 100644 --- a/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs +++ b/src/Verify.Xunit.Tests/Scrubbers/ScrubbersSample.cs @@ -31,9 +31,10 @@ public ScrubbersSample(ITestOutputHelper output) : AddScrubber(s => s.Replace("Three", "C")); } - public static class ModuleInitializer + [GlobalSetUp] + public static class GlobalSetup { - public static void Initialize() + public static void Setup() { Global.AddScrubber(s => s.Replace("One", "A")); } diff --git a/src/Verify.Xunit.Tests/Verify.Xunit.Tests.csproj b/src/Verify.Xunit.Tests/Verify.Xunit.Tests.csproj index b0e0f777ff..67affd96a1 100644 --- a/src/Verify.Xunit.Tests/Verify.Xunit.Tests.csproj +++ b/src/Verify.Xunit.Tests/Verify.Xunit.Tests.csproj @@ -5,11 +5,9 @@ true - -