Esempio n. 1
0
        public void TestCreateFolder()
        {
            var id = CreateFolder.DriveCreateFolder();

            Assert.IsNotNull(id);
            DeleteFileOnCleanup(id);
        }
Esempio n. 2
0
        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);
        }