public void TestSFtpsSpaces()
        {
            FtpsOptions options = new FtpsOptions();

            options.Host            = host;
            options.User            = user;
            options.Password        = password;
            options.Port            = port;
            options.ForceEncryption = forceEncryption;
            options.ConnectionMode  = connectionMode;
            options.EncryptionMode  = encryptionMode;
            options.Protocol        = protocol;
            FtpsClient client = TestConnection(options);

            TestPut(client);
            TestGet(client);
            client.Disconnect();
        }
Exemple #2
0
        public void TestWhiteList()
        {
            FtpsOptions options = new FtpsOptions();

            options.Host            = host;
            options.User            = user;
            options.Password        = password;
            options.Port            = port;
            options.ForceEncryption = forceEncryption;
            options.ConnectionMode  = connectionMode;
            options.EncryptionMode  = encryptionMode;
            options.Protocol        = protocol;
            options.WhiteList       = whiteList;
            FtpsClient client = TestConnection(options);
            bool       put    = client.Put(imagePath, remoteDir);

            Assert.IsFalse(put);
            Assert.IsTrue(client.HasError());
            client.Disconnect();
        }
Exemple #3
0
        public void TestWithCert()
        {
            FtpsOptions options = new FtpsOptions();

            options.Host               = host;
            options.User               = user;
            options.Password           = password;
            options.Port               = port;
            options.ForceEncryption    = forceEncryption;
            options.ConnectionMode     = connectionMode;
            options.EncryptionMode     = encryptionMode;
            options.Protocol           = protocol;
            options.WhiteList          = whiteList;
            options.TrustStorePath     = trustStorePath;
            options.TrustStorePassword = trustStorePassword;
            FtpsClient client = TestConnection(options);

            TestPut(client);
            TestGet(client);
            client.Disconnect();
        }