public void download_FTP_file_in_chunks_valid_args() { TestDownloadClass obj = new TestDownloadClass(); //int chunkLength = 1048576; obj.url = "ftp://speedtest.tele2.net/5MB.zip"; obj.downloadPath = @"C:\Users\dmestry\Documents\Curl\TESTING"; //if (obj.downloadFile_inChunks("1MB.zip",1, "verify_download_file_in_chunks_valid_args",anonymousAuth)) // Assert.AreEqual(true, true); //else // Assert.AreEqual(false, true); Assert.AreEqual(obj.downloadFile_inChunks("5MB.zip", 1, "verify_download_file_in_chunks_valid_args", anonymousAuth), true); }
public void download_HTTPS_file_in_chunks_valid_args() { TestDownloadClass obj = new TestDownloadClass(); //int chunkLength = 1048576; obj.url = "https://www.dropbox.com/s/jf4wr6m075sevy5/curl_747_1_ssl.zip?dl=0"; obj.downloadPath = @"C:\Users\dmestry\Documents\Curl\TESTING"; //if (obj.downloadFile_inChunks("1MB.zip",1, "verify_download_file_in_chunks_valid_args",anonymousAuth)) // Assert.AreEqual(true, true); //else // Assert.AreEqual(false, true); Assert.AreEqual(obj.downloadFile_inChunks("curl_747_1_ssl.zip", 1, "verify_download_file_in_chunks_valid_args", anonymousAuth), true); }
public void download_SFTP_file_in_chunks_valid_args() { TestDownloadClass obj = new TestDownloadClass(); //int chunkLength = 1048576; obj.url = "sftp://192.168.29.221/testfile.txt"; obj.downloadPath = @"C:\Users\dmestry\Documents\Curl\TESTING"; username = ConfigurationManager.AppSettings["USER_SFTP"]; password = ConfigurationManager.AppSettings["PASSWORD_SFTP"]; //if (obj.downloadFile_inChunks("1MB.zip",1, "verify_download_file_in_chunks_valid_args",anonymousAuth)) // Assert.AreEqual(true, true); //else // Assert.AreEqual(false, true); Assert.AreEqual(obj.downloadFile_inChunks("testfile.txt", 1, "verify_download_file_in_chunks_valid_args", securedAuth), true); }