Fix test failures.

This commit is contained in:
drieseng
2020-12-29 20:13:19 +01:00
parent 60be75d85c
commit 43f18cb3d4
2 changed files with 8 additions and 0 deletions
@@ -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"));