public void AuthenticateShouldThrowArgumentNullExceptionWhenConnectionInfoIsNull() { IConnectionInfoInternal connectionInfo = null; var session = new Mock <ISession>(MockBehavior.Strict).Object; try { _clientAuthentication.Authenticate(connectionInfo, session); Assert.Fail(); } catch (ArgumentNullException ex) { Assert.IsNull(ex.InnerException); Assert.AreEqual("connectionInfo", ex.ParamName); } }
protected override void Act() { try { ClientAuthentication.Authenticate(ConnectionInfoMock.Object, SessionMock.Object); Assert.Fail(); } catch (SshAuthenticationException ex) { _actualException = ex; } }
protected override void Act() { ClientAuthentication.Authenticate(ConnectionInfoMock.Object, SessionMock.Object); }