mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
Fix test failures.
This commit is contained in:
@@ -17,6 +17,7 @@ namespace Renci.SshNet.Tests.Classes
|
||||
{
|
||||
_serviceFactory = new ServiceFactory();
|
||||
_connectionInfoMock = new Mock<IConnectionInfo>(MockBehavior.Strict);
|
||||
_socketFactoryMock = new Mock<ISocketFactory>(MockBehavior.Strict);
|
||||
}
|
||||
|
||||
[TestMethod]
|
||||
|
||||
@@ -11,6 +11,13 @@ namespace Renci.SshNet.Tests.Classes
|
||||
private SshClient _sshClient;
|
||||
private ConnectionInfo _connectionInfo;
|
||||
|
||||
protected override void CreateMocks()
|
||||
{
|
||||
base.CreateMocks();
|
||||
|
||||
_forwardedPortMock = new Mock<ForwardedPort>(MockBehavior.Strict);
|
||||
}
|
||||
|
||||
protected override void SetupData()
|
||||
{
|
||||
_connectionInfo = new ConnectionInfo("host", "user", new NoneAuthenticationMethod("userauth"));
|
||||
|
||||
Reference in New Issue
Block a user