From 8720929ea682a94a1a6d64226e87339f3dfe383b Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 16 Jul 2024 20:46:48 +1000 Subject: [PATCH] Update Verifier.cs --- src/Verify.NUnit/Verifier.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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}");