//[TestMethod] public void DownloadTest() { const string folder = ""; const string file = "test.sfs"; var dropboxClient = new DropboxWrapper(); Task task = dropboxClient.Download(folder, file); task.Wait(); Assert.IsTrue(dropboxClient.LastDownloadedFile != null); Assert.IsTrue(dropboxClient.LastDownloadedFile.Length == 709); File.WriteAllBytes("dropboxTest2.sfs", dropboxClient.LastDownloadedFile); Assert.IsTrue(FileEquals("dropboxTest.sfs", "dropboxTest2.sfs")); }
public async void DownloadFile(string accessToken, string selectedFile) { await _dropbox.Download("", selectedFile); _messenger.Send(new DropboxFileDownloadFinishedMsg(selectedFile, _dropbox.LastDownloadedFile)); }