public void TestUserReportedError2(string host, int port, FtpsSecurityProtocol protocol, string user, string pwd, string server) { FtpsClient ftp = new FtpsClient("127.0.0.1", port, protocol); ftp.AlwaysAcceptServerCertificate = true; ftp.Open("test", "test"); ftp.GetFile("luna.h", "luna1-2.h", FileAction.Create); ftp.Close(); }
public void TestOpen(string host, int port, FtpsSecurityProtocol protocol, string user, string pwd, string server) { FtpsClient c = new FtpsClient(host, port, protocol); c.AlwaysAcceptServerCertificate = true; c.Open(user, pwd); Assert.IsTrue(c.IsConnected); c.Close(); }