public void ExistsFileTest() { var target = new SftpDownloader("ftp.foobar.com", "username", "password"); string path = "aaa.csv"; var actual = target.ExistsFile(path); Assert.IsTrue(actual); }
public void DownloadTest() { var target = new SftpDownloader("ftp.foobar.com", 22, "username", "password"); string path = "aaa.csv"; MemoryStream actual = null; actual = target.Download(path); Assert.IsNotNull(actual); Assert.IsTrue(actual.Length > 0); }