public void TestGetSystemType(string host, int port, FtpsSecurityProtocol protocol,
                               string user, string pwd, string server)
 {
     using (FtpsClient c = new FtpsClient(host, port, protocol))
     {
         c.AlwaysAcceptServerCertificate = true;
         c.Open(user, pwd);
         Assert.IsTrue(c.IsConnected);
         string r = c.GetSystemType();
         Assert.IsNotNullOrEmpty(r);
         Debug.WriteLine("RESULT: " + r);
     }
 }
示例#2
0
 public void TestGetSystemType(string host, int port, FtpsSecurityProtocol protocol,
                               string user, string pwd)
 {
     using (FtpsClient c = new FtpsClient(host, port, protocol))
     {
         c.NetworkProtocol = NETWORK_PROTOCOL;
         c.AlwaysAcceptServerCertificate = true;
         c.Open(user, pwd);
         Assert.IsTrue(c.IsConnected);
         string r = c.GetSystemType();
         Assert.IsNotNull(r);
         Assert.IsNotEmpty(r);
         Console.WriteLine("RESULT: " + r);
     }
 }