Skip to content

Commit 43f18cb

Browse files
committed
Fix test failures.
1 parent 60be75d commit 43f18cb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Renci.SshNet.Tests/Classes/ServiceFactoryTest_CreateConnector.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public void Setup()
1717
{
1818
_serviceFactory = new ServiceFactory();
1919
_connectionInfoMock = new Mock<IConnectionInfo>(MockBehavior.Strict);
20+
_socketFactoryMock = new Mock<ISocketFactory>(MockBehavior.Strict);
2021
}
2122

2223
[TestMethod]

src/Renci.SshNet.Tests/Classes/SshClientTest_Disconnect_ForwardedPortStarted.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ public class SshClientTest_Disconnect_ForwardedPortStarted : BaseClientTestBase
1111
private SshClient _sshClient;
1212
private ConnectionInfo _connectionInfo;
1313

14+
protected override void CreateMocks()
15+
{
16+
base.CreateMocks();
17+
18+
_forwardedPortMock = new Mock<ForwardedPort>(MockBehavior.Strict);
19+
}
20+
1421
protected override void SetupData()
1522
{
1623
_connectionInfo = new ConnectionInfo("host", "user", new NoneAuthenticationMethod("userauth"));

0 commit comments

Comments
 (0)