This commit is contained in:
Rob Hague
2026-10-19 23:37:23 +02:00
parent 2b7e01aa73
commit d1993747b1
8 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -9,7 +9,7 @@
<PackageVersion Include="coverlet.collector" Version="10.1.0" />
<PackageVersion Include="coverlet.msbuild" Version="10.1.0" />
<PackageVersion Include="GitHubActionsTestLogger" Version="3.0.5" />
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.303" />
<PackageVersion Include="Meziantou.Analyzer" Version="3.0.313" />
<!-- Should stay on LTS .NET releases. -->
<PackageVersion Include="Microsoft.Bcl.Cryptography" Version="10.0.13" />
<PackageVersion Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.3" />
@@ -24,4 +24,4 @@
<PackageVersion Include="System.Formats.Asn1" Version="10.0.13" />
<PackageVersion Include="Testcontainers" Version="4.16.0" />
</ItemGroup>
</Project>
</Project>
@@ -119,7 +119,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, "Socket read operation has timed out after {0:F0} milliseconds.", _connectionInfo.Timeout.TotalMilliseconds), _actualException.Message);
}
@@ -95,7 +95,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, "Socket read operation has timed out after {0:F0} milliseconds.", _connectionInfo.Timeout.TotalMilliseconds), _actualException.Message);
}
@@ -88,7 +88,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
public void StartShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNotNull(_actualException);
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format("Socket read operation has timed out after {0} milliseconds.", _timeout.TotalMilliseconds), _actualException.Message);
}
@@ -97,7 +97,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, "Socket read operation has timed out after {0:F0} milliseconds.", _connectionInfo.Timeout.TotalMilliseconds), _actualException.Message);
}
@@ -93,7 +93,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, "Socket read operation has timed out after {0:F0} milliseconds.", _connectionInfo.Timeout.TotalMilliseconds), _actualException.Message);
}
@@ -85,7 +85,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.AreEqual(string.Format(CultureInfo.InvariantCulture, "Socket read operation has timed out after {0:F0} milliseconds.", _connectionInfo.Timeout.TotalMilliseconds), _actualException.Message);
}
@@ -95,7 +95,6 @@ namespace Renci.SshNet.Tests.Classes.Connection
[TestMethod]
public void ConnectShouldHaveThrownSshOperationTimeoutException()
{
Assert.IsNull(_actualException.InnerException);
Assert.IsInstanceOfType<SshOperationTimeoutException>(_actualException);
}