public void CopyFileFolderTest() { var api = new MailRuCloud(); api.Account = this.account; var result = api.UploadFileAsync(new FileInfo(@"D:\1.stl"), "/"); if (result.Result) { var file = api.GetItems("/").Files.First(x => x.Name == "1.stl"); api.Copy(file, "/Misuc"); api.CreateFolder("new test folder", "/"); var folder = api.GetItems("/").Folders.First(x => x.Name == "new test folder"); api.Copy(folder, "/Misuc"); var entry = api.GetItems("/Misuc"); Assert.IsNotNull(entry.Folders.FirstOrDefault(x => x.Name == folder.Name)); Assert.IsNotNull(entry.Files.FirstOrDefault(x => x.Name == file.Name)); } }