diff --git a/docs/ApprovalTests/howtos/CustomizingDiffToolSelectionOrder.md b/docs/ApprovalTests/howtos/CustomizingDiffToolSelectionOrder.md index b0cf3d86..7381ad7b 100644 --- a/docs/ApprovalTests/howtos/CustomizingDiffToolSelectionOrder.md +++ b/docs/ApprovalTests/howtos/CustomizingDiffToolSelectionOrder.md @@ -21,8 +21,6 @@ Once you create the class, you select it with the `[UseReporter(typeof(CustomDif ```cs -using ApprovalTests.Reporters.TestFrameworks; - public class CustomDiffReporter : FirstWorkingReporter { @@ -44,7 +42,7 @@ public class CustomDiffReporter : } } ``` -snippet source | anchor +snippet source | anchor You can also override the default order while using `DiffReporter` by defining `DiffEngine_ToolOrder` environment variable. The value of that variable should contain a delimiter (`,`, `|`, ` `) separated list of the diff tool names in the desired order. More details about that in [Diff Tool Order](https://github.com/VerifyTests/DiffEngine/blob/main/docs/diff-tool.order.md) diff --git a/src/ApprovalTests.Tests/GlobalUsings.cs b/src/ApprovalTests.Tests/GlobalUsings.cs index 42300ac5..53518803 100644 --- a/src/ApprovalTests.Tests/GlobalUsings.cs +++ b/src/ApprovalTests.Tests/GlobalUsings.cs @@ -14,6 +14,7 @@ global using ApprovalTests.Namers; global using ApprovalTests.Namers.StackTraceParsers; global using ApprovalTests.Reporters; +global using ApprovalTests.Reporters.TestFrameworks; global using ApprovalTests.Scrubber; global using ApprovalTests.Utilities; global using ApprovalTests.WindowsRegistry; diff --git a/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs b/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs index 06a15c0f..f6d87057 100644 --- a/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs +++ b/src/ApprovalTests.Tests/Reporters/CustomDiffReporter.cs @@ -1,6 +1,4 @@ -using ApprovalTests.Reporters.TestFrameworks; - -public class CustomDiffReporter : +public class CustomDiffReporter : FirstWorkingReporter { public CustomDiffReporter() diff --git a/src/ApprovalTests.Tests/Reporters/MultiReporterTest.cs b/src/ApprovalTests.Tests/Reporters/MultiReporterTest.cs index c5f11da7..aea7f432 100644 --- a/src/ApprovalTests.Tests/Reporters/MultiReporterTest.cs +++ b/src/ApprovalTests.Tests/Reporters/MultiReporterTest.cs @@ -1,5 +1,3 @@ -using ApprovalTests.Reporters.TestFrameworks; - [TestFixture] public class MultiReporterTest { diff --git a/src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs b/src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs index be1f1f20..a2006a55 100644 --- a/src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs +++ b/src/ApprovalTests.Tests/Reporters/NUnitReporterTest.cs @@ -1,4 +1,3 @@ -using ApprovalTests.Reporters.TestFrameworks; using NUnit.Framework.Internal; [TestFixture] diff --git a/src/ApprovalTests.Tests/Reporters/NUnitReporterWithCleanup.cs b/src/ApprovalTests.Tests/Reporters/NUnitReporterWithCleanup.cs index 1d684642..5f9ef4aa 100644 --- a/src/ApprovalTests.Tests/Reporters/NUnitReporterWithCleanup.cs +++ b/src/ApprovalTests.Tests/Reporters/NUnitReporterWithCleanup.cs @@ -1,5 +1,3 @@ -using ApprovalTests.Reporters.TestFrameworks; - public class NUnitReporterWithCleanup : NUnitReporter { public override void Report(string approved, string received)