Skip to content

Commit 6c3c06d

Browse files
committed
fix new warnings with MSTest 4 + .NET 10
1 parent 52f30b8 commit 6c3c06d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/Renci.SshNet.IntegrationTests/Logging/TestConsoleLoggerProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
namespace Renci.SshNet.IntegrationTests.Logging
66
{
7+
#pragma warning disable CA1812 // Avoid uninstantiated internal classes
78
internal class TestConsoleLoggerProvider : ILoggerProvider
9+
#pragma warning restore CA1812 // Avoid uninstantiated internal classes
810
{
911
public ILogger CreateLogger(string categoryName)
1012
{

test/Renci.SshNet.Tests/Common/TestMethodForPlatformAttribute.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ namespace Renci.SshNet.Tests.Common
1010
[AttributeUsage(AttributeTargets.Method)]
1111
public sealed class TestMethodForPlatformAttribute : TestMethodAttribute
1212
{
13+
#pragma warning disable CA1019 // CA1019: Define accessors for attribute arguments
1314
public TestMethodForPlatformAttribute(string platform, [CallerFilePath] string callerFilePath = "", [CallerLineNumber] int callerLineNumber = -1) : base(callerFilePath, callerLineNumber)
15+
#pragma warning restore CA1019 // CA1019: Define accessors for attribute arguments
1416
{
1517
Platform = platform;
1618
}

0 commit comments

Comments
 (0)