diff --git a/test/Renci.SshNet.IntegrationTests/Logging/TestConsoleLoggerProvider.cs b/test/Renci.SshNet.IntegrationTests/Logging/TestConsoleLoggerProvider.cs index 4a9c2357..7e76f1fc 100644 --- a/test/Renci.SshNet.IntegrationTests/Logging/TestConsoleLoggerProvider.cs +++ b/test/Renci.SshNet.IntegrationTests/Logging/TestConsoleLoggerProvider.cs @@ -4,7 +4,9 @@ using Microsoft.Extensions.Logging; namespace Renci.SshNet.IntegrationTests.Logging { +#pragma warning disable CA1812 // Avoid uninstantiated internal classes internal class TestConsoleLoggerProvider : ILoggerProvider +#pragma warning restore CA1812 // Avoid uninstantiated internal classes { public ILogger CreateLogger(string categoryName) { diff --git a/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs b/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs index dbccbb22..2d2d5a83 100644 --- a/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs +++ b/test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs @@ -10,7 +10,9 @@ namespace Renci.SshNet.Tests.Common [AttributeUsage(AttributeTargets.Method)] public sealed class TestMethodForPlatformAttribute : TestMethodAttribute { +#pragma warning disable CA1019 // CA1019: Define accessors for attribute arguments public TestMethodForPlatformAttribute(string platform, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = -1) : base(callerFilePath, callerLineNumber) +#pragma warning restore CA1019 // CA1019: Define accessors for attribute arguments { Platform = platform; }