mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 01:05:42 +00:00
fix new warnings with MSTest 4 + .NET 10
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user