public void TestCreateFolder() { var id = CreateFolder.DriveCreateFolder(); Assert.IsNotNull(id); DeleteFileOnCleanup(id); }
public void TestUploadToFolder() { var folderId = CreateFolder.DriveCreateFolder(); var id = UploadToFolder.DriveUploadToFolder(filePath, folderId); DeleteFileOnCleanup(folderId); }
public void TestMoveFileToFolder() { var fileId = CreateTestBlob(filePath); var folderId = CreateFolder.DriveCreateFolder(); IList <string> parents = MoveFileToFolder.DriveMoveFileToFolder( fileId, folderId); Assert.IsTrue(parents.Contains(folderId)); Assert.AreEqual(1, parents.Count); DeleteFileOnCleanup(folderId); }