Files
Gert Driesen 508fc87d2a Fix analyzer errors in Renci.SshNet and Renci.SshNet.TestTools.OpenSSH (#1229)
* Fix analyzer errors in Renci.SshNet and Renci.SshNet.TestTools.OpenSSH.
Suppress all errors in unit tests and integration tests.

* Update unit tests now that we pass 'mode' as argument name when we throw ArgumentException.

* Remove stale comment and add unit tests for SshData.ReadBytes(int length).

* Remove unnessary suppression.

* Remove Visual Studio magic.

* Removed duplicate source file.

* Clarified that suppression hides a false positive.

* Remove suppressions for S2372.

* Update ReadExtensionPair() to return concrete dictionary.
2023-11-01 11:33:42 +01:00

19 lines
453 B
C#

using System.Net;
namespace Renci.SshNet.IntegrationTests
{
public sealed class HostEntry
{
public HostEntry(IPAddress ipAddress, string hostName)
{
IPAddress = ipAddress;
HostName = hostName;
Aliases = new List<string>();
}
public IPAddress IPAddress { get; private set; }
public string HostName { get; set; }
public List<string> Aliases { get; }
}
}