public void Init_Default_LogsInAndConnects()
        {
            mockSession.Setup(m => m.Open(It.Is <SessionOptions>(
                                              o => o.Protocol == Protocol.Ftp &&
                                              o.HostName == host &&
                                              o.UserName == username &&
                                              o.Password == password
                                              )));

            var result = operations.Init(session, username, password, host, port);

            Assert.AreEqual(result, new Tuple <bool, string>(true, "Initialization succeeded."));
            Assert.AreEqual(operations.ftp, session);
            mockSession.VerifyAll();
        }
        public void Setup()
        {
            mockOperations          = new Mock <FtpOperations>();
            mockOperations.CallBase = true;
            operations = mockOperations.Object;

            mockWebClient = new Mock <IWebClient>();
            client        = mockWebClient.Object;

            mockSession = new Mock <ISession>();
            session     = mockSession.Object;
            operations.Init(session, username, password, host, port);

            directory = "ftp://" + host + ':' + port + "/complete";
        }