public void GetNonExsitingFileMetadata() { string filepath = "/"; string filename = @"File"; string fullpath = filepath + filename; ApiResponse meta1 = GetFileInf.GetMeta(fullpath); Assert.IsFalse(meta1.IfSuccessful()); }
public void GetExsitingFileMetadata() { string filepath = "/"; string filename = @"WS_Dropbox-master.zip"; string fullpath = filepath + filename; ApiResponse meta1 = GetFileInf.GetMeta(fullpath); ApiResponse meta2 = GetFileInf.GetMeta(filepath, filename); Assert.IsTrue(meta1.ContentAsString.Equals(meta2.ContentAsString) && meta1.IfSuccessful()); }
public void DeleteFileTest() { string filepath = "/"; string filename = @"Web services testing - episode 2.pptx"; string fullpath = filepath + filename; DeleteFiles.UploadFile(fullpath); Assert.IsTrue(GetFileInf.CheckIfFileExcists(fullpath)); DeleteFiles.DeleteFile(fullpath); Assert.IsFalse(GetFileInf.CheckIfFileExcists(fullpath)); }