diff --git a/src/Verify.NUnit/Verifier.cs b/src/Verify.NUnit/Verifier.cs index b03b80110d..977e195506 100644 --- a/src/Verify.NUnit/Verifier.cs +++ b/src/Verify.NUnit/Verifier.cs @@ -1,4 +1,5 @@ -namespace VerifyNUnit; +#pragma warning disable VerifySetParameters +namespace VerifyNUnit; public static partial class Verifier { @@ -33,9 +34,7 @@ static InnerVerifier BuildVerifier(string sourceFile, VerifySettings settings, b if (!settings.HasParameters && adapter.Arguments.Length > 0) { -#pragma warning disable VerifySetParameters settings.SetParameters(adapter.Arguments); -#pragma warning restore } var customName = !adapter.FullName.StartsWith($"{testMethod.TypeInfo.FullName}.{testMethod.Name}");