/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.MemoryMappedFiles/tests/ |
H A D | MemoryMappedFile.CreateFromFile.Tests.cs | 65 using (TempFile file = new TempFile(GetTestFilePath())) in InvalidArguments_Mode() 95 using (TempFile file = new TempFile(GetTestFilePath())) in InvalidArguments_Access() 188 using (TempFile file = new TempFile(GetTestFilePath())) in InvalidArguments_MapName() 230 using (TempFile file = new TempFile(GetTestFilePath())) in InvalidArguments_Capacity() 280 using (TempFile file = new TempFile(GetTestFilePath())) in InvalidArguments_Inheritability() 328 using (TempFile file = new TempFile(GetTestFilePath())) in ValidArgumentCombinationsWithPath_ModesOpenOrCreate() 469 using (FileStream fs = File.Create(GetTestFilePath())) in ValidArgumentCombinationsWithStream() 571 using (TempFile file = new TempFile(GetTestFilePath())) in FileAlreadyExists() 589 using (TempFile file = new TempFile(GetTestFilePath(), 4096)) in FileInUse_CreateFromFile_FailsWithExistingReadWriteFile() 727 using (TempFile file = new TempFile(GetTestFilePath())) in LeaveOpenRespected_Basic() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/Directory/ |
H A D | Move.cs | 63 string source = GetTestFilePath(); in MoveFile() 64 string destination = GetTestFilePath(); in MoveFile() 75 string source = GetTestFilePath(); in MoveFile_TrailingDestinationSlash() 88 string source = GetTestFilePath(); in MoveFile_TrailingDestinationAltSlash_Windows() 99 string source = GetTestFilePath(); in MoveFile_TrailingSourceSlash() 109 string source = GetTestFilePath(); in MoveFile_TrailingSourceAltSlash_Windows() 119 string testFile = GetTestFilePath(); in MoveOntoFile() 152 string testDir = GetTestFilePath(); in MultipleMoves() 206 string testDir = GetTestFilePath(); in Path_Longer_Than_MaxLongPath_Throws_Exception() 223 string testDir = GetTestFilePath(); in Path_With_Longer_Than_MaxDirectory_Succeeds() [all …]
|
H A D | Delete.cs | 39 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in ShouldThrowIOExceptionIfContainedFileInUse() 50 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in ShouldThrowIOExceptionForDirectoryWithFiles() 59 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in DirectoryWithSubdirectories() 75 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in PositiveTest() 83 string path = GetTestFilePath() + trailingChar; in MissingFile_ThrowsDirectoryNotFound() 90 string path = Path.Combine(GetTestFilePath(), "file" + trailingChar); in MissingDirectory_ThrowsDirectoryNotFound() 103 var path = GetTestFilePath(); in DeletingSymLinkDoesntDeleteTarget() 104 var linkPath = GetTestFilePath(); in DeletingSymLinkDoesntDeleteTarget() 146 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in WindowsDeleteReadOnlyDirectory() 168 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in UnixDeleteReadOnlyDirectory() [all …]
|
H A D | Exists.cs | 65 string path = GetTestFilePath(); in PathAlreadyExistsAsFile() 76 string path = GetTestFilePath(); in PathAlreadyExistsAsDirectory() 114 var path = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() 115 var linkPath = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() 161 string path = GetTestFilePath(); in SymlinkToNewDirectory() 164 string linkPath = GetTestFilePath(); in SymlinkToNewDirectory() 189 string path = IOInputs.ExtendedPrefix + GetTestFilePath(); in ExtendedPathAlreadyExistsAsFile() 201 string path = IOInputs.ExtendedPrefix + GetTestFilePath(); in ExtendedPathAlreadyExistsAsDirectory() 258 string path = GetTestFilePath(memberName: "Extended") + component; in TrailingWhitespaceExistence_SimpleWhiteSpace() 294 string path = GetTestFilePath(); in TrailingSpaceExists() [all …]
|
H A D | CreateDirectory.cs | 50 string path = GetTestFilePath(); in PathAlreadyExistsAsFile() 64 DirectoryInfo testDir = Create(GetTestFilePath()); in PathAlreadyExistsAsDirectory() 89 string path = GetTestFilePath(); in DotIsCurrentDirectory() 177 DirectoryInfo testDir = Create(GetTestFilePath()); in DirectoryEqualToMaxDirectory_CanBeCreatedAllAtOnce() 218 var paths = IOInputs.GetPathsLongerThanMaxPath(GetTestFilePath()); in DirectoryLongerThanMaxPath_Succeeds() 291 DirectoryInfo testDir = Create(GetTestFilePath()); in UnixPathLongerThan256_Allowed() 302 DirectoryInfo parent = Create(GetTestFilePath()); in UnixPathWithDeeplyNestedDirectories() 335 DirectoryInfo testDir = Create(GetTestFilePath()); in TrailingWhiteSpace_Trimmed() 350 DirectoryInfo testDir = Create(GetTestFilePath() + component); in TrailingWhiteSpace_NotTrimmed() 364 DirectoryInfo testDir = Create(GetTestFilePath()); in TrailingSpace_NotTrimmed() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/File/ |
H A D | Move.cs | 39 FileInfo testFile = new FileInfo(GetTestFilePath()); in NonExistentPath() 49 FileInfo testFile = new FileInfo(GetTestFilePath()); in PathWithIllegalCharacters() 65 string testFileDest = GetTestFilePath(); in BasicMove() 82 string testFileDest = GetTestFilePath(); in MoveNonEmptyFile() 93 FileInfo testFile = new FileInfo(GetTestFilePath()); in MoveOntoDirectory() 113 string testDir = GetTestFilePath(); in MoveIntoParentDirectory() 126 string testDir = GetTestFilePath(); in MoveToSameName() 139 string testDir = GetTestFilePath(); in MoveToSameNameDifferentCasing() 156 string testFileDest1 = GetTestFilePath(); in MultipleMoves() 157 string testFileDest2 = GetTestFilePath(); in MultipleMoves() [all …]
|
H A D | ReadWriteAllLines.cs | 43 string path = GetTestFilePath(); in NullLines() 53 string path = GetTestFilePath(); in EmptyStringCreatesFile() 64 string path = GetTestFilePath(); in ValidWrite() 74 string path = GetTestFilePath(); in Overwrite() 85 string path = GetTestFilePath(); in OpenFile_ThrowsIOException() 98 string path = GetTestFilePath(); in Read_FileNotFound() 110 string path = GetTestFilePath(); in WriteToReadOnlyFile() 133 string path = GetTestFilePath(); in DisposingEnumeratorClosesFile() 166 string path = GetTestFilePath(); in NullEncoding() 195 string path = GetTestFilePath(); in NullEncoding() [all …]
|
H A D | Replace.cs | 37 string srcPath = GetTestFilePath(); in NoBackup_FileCopiedAndDeleted() 38 string destPath = GetTestFilePath(); in NoBackup_FileCopiedAndDeleted() 58 string srcPath = GetTestFilePath(); in Backup_FileCopiedAndDeleted_DestCopied() 59 string destPath = GetTestFilePath(); in Backup_FileCopiedAndDeleted_DestCopied() 60 string destBackupPath = GetTestFilePath(); in Backup_FileCopiedAndDeleted_DestCopied() 83 string dest = GetTestFilePath(); in NonExistentSourcePath_ThrowsException() 85 Assert.Throws<FileNotFoundException>(() => Replace(GetTestFilePath(), dest, null)); in NonExistentSourcePath_ThrowsException() 91 string src = GetTestFilePath(); in NonExistentDestPath_ThrowsException() 93 Assert.Throws<FileNotFoundException>(() => Replace(src, GetTestFilePath(), null)); in NonExistentDestPath_ThrowsException() 99 string testFile = GetTestFilePath(); in InvalidFileNames() [all …]
|
H A D | Exists.cs | 64 string path = GetTestFilePath(); in PathAlreadyExistsAsFile() 90 string path = GetTestFilePath(); in PathEndsInTrailingSlash_AndExists() 99 string path = GetTestFilePath(); in PathEndsInAltTrailingSlash_AndExists_Windows() 107 string path = GetTestFilePath(); in PathAlreadyExistsAsDirectory() 136 var path = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() 137 var linkPath = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() 174 FileInfo testFile = new FileInfo(GetTestFilePath()); in DoesCaseInsensitiveInvariantComparions() 185 FileInfo testFile = new FileInfo(GetTestFilePath()); in DoesCaseSensitiveComparions() 199 FileInfo testFile = new FileInfo(GetTestFilePath()); in TrailingWhiteSpace_Trimmed() 213 string path = GetTestFilePath() + component; in TrailingWhiteSpace_NotTrimmed() [all …]
|
H A D | Copy.cs | 43 string testFile = GetTestFilePath(); in CopyOntoDirectory() 51 string testFile = GetTestFilePath(); in CopyOntoSelf() 70 string testFileSource = GetTestFilePath(); in CopyValid() 71 string testFileDest = GetTestFilePath(); in CopyValid() 81 string testFileSource = GetTestFilePath(); in ShortenLongPath() 90 string testFile = GetTestFilePath(); in InvalidFileNames() 120 string testFileDest = GetTestFilePath(); in CopyFileWithData_MemberData() 168 string testFile = GetTestFilePath(); in WindowsWhitespacePath() 180 string testFile = GetTestFilePath(); in UnixWhitespacePath() 212 string testFileDest = GetTestFilePath(); in OverwriteTrue() [all …]
|
H A D | ReadWriteAllText.cs | 32 string path = GetTestFilePath(); in NullParameters() 46 string path = GetTestFilePath(); in NullContent_CreatesFile() 54 string path = GetTestFilePath(); in EmptyStringContent_CreatesFile() 62 string path = GetTestFilePath(); in InvalidParameters() 72 string path = GetTestFilePath(); in ValidWrite() 83 string path = GetTestFilePath(); in Overwrite() 94 string path = GetTestFilePath(); in OpenFile_ThrowsIOException() 107 string path = GetTestFilePath(); in Read_FileNotFound() 119 string path = GetTestFilePath(); in WriteToReadOnlyFile() 157 string path = GetTestFilePath(); in NullEncoding()
|
H A D | ReadWriteAllTextAsync.cs | 29 string path = GetTestFilePath(); in NullParametersAsync() 41 string path = GetTestFilePath(); in NullContent_CreatesFileAsync() 49 string path = GetTestFilePath(); in EmptyStringContent_CreatesFileAsync() 57 string path = GetTestFilePath(); in InvalidParametersAsync() 70 string path = GetTestFilePath(); in ValidWriteAsync() 81 string path = GetTestFilePath(); in OverwriteAsync() 92 string path = GetTestFilePath(); in OpenFile_ThrowsIOExceptionAsync() 114 string path = GetTestFilePath(); in WriteToReadOnlyFileAsync() 137 string path = GetTestFilePath(); in TaskAlreadyCanceledAsync() 160 string path = GetTestFilePath(); in NullEncodingAsync() [all …]
|
H A D | ReadWriteAllBytes.cs | 16 string path = GetTestFilePath(); in NullParameters() 25 string path = GetTestFilePath(); in InvalidParameters() 33 string path = GetTestFilePath(); in Read_FileNotFound() 40 string path = GetTestFilePath(); in EmptyContentCreatesFile() 52 string path = GetTestFilePath(); in ValidWrite() 63 string path = GetTestFilePath(); in ReadFileOver2GB() 76 string path = GetTestFilePath(); in Overwrite() 87 string path = GetTestFilePath(); in OpenFile_ThrowsIOException() 104 string path = GetTestFilePath(); in WriteToReadOnlyFile()
|
H A D | ReadWriteAllBytesAsync.cs | 18 string path = GetTestFilePath(); in NullParametersAsync() 27 string path = GetTestFilePath(); in InvalidParametersAsync() 35 string path = GetTestFilePath(); in Read_FileNotFoundAsync() 42 string path = GetTestFilePath(); in EmptyContentCreatesFileAsync() 54 string path = GetTestFilePath(); in ValidWriteAsync() 64 string path = GetTestFilePath(); in AlreadyCanceledAsync() 77 string path = GetTestFilePath(); in ReadFileOver2GBAsync() 90 string path = GetTestFilePath(); in OverwriteAsync() 101 string path = GetTestFilePath(); in OpenFile_ThrowsIOExceptionAsync() 118 string path = GetTestFilePath(); in WriteToReadOnlyFileAsync()
|
H A D | Delete.cs | 52 FileInfo testFile = Create(GetTestFilePath()); in ShouldBeAbleToDeleteHiddenFile() 61 FileInfo testFile = Create(GetTestFilePath()); in DeleteNonEmptyFile() 70 FileInfo testFile = Create(GetTestFilePath()); in PositiveTest() 78 Delete(GetTestFilePath()); in NonExistentFile() 90 var path = GetTestFilePath(); in DeletingSymLinkDoesntDeleteTarget() 91 var linkPath = GetTestFilePath(); in DeletingSymLinkDoesntDeleteTarget() 160 string path = GetTestFilePath(); in Windows_File_Already_Open_Throws_IOException() 171 string path = GetTestFilePath(); in Unix_File_Already_Open_Allowed() 184 string path = GetTestFilePath(); in WindowsDeleteReadOnlyFile() 196 FileInfo testFile = Create(GetTestFilePath()); in UnixDeleteReadOnlyFile()
|
H A D | Create.cs | 49 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in ValidCreation() 102 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in LegalSymbols() 113 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in InvalidDirectory() 121 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in FileInUse() 133 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in FileAlreadyExists() 144 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in OverwriteReadOnly() 155 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in LongPathSegment() 179 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in CaseSensitive() 196 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in CaseInsensitive() 207 DirectoryInfo testDir = Directory.CreateDirectory(GetTestFilePath()); in WindowsWildCharacterPath() [all …]
|
H A D | ReadWriteAllLinesAsync.cs | 40 string path = GetTestFilePath(); in NullLinesAsync() 50 string path = GetTestFilePath(); in EmptyStringCreatesFileAsync() 61 string path = GetTestFilePath(); in ValidWriteAsync() 71 string path = GetTestFilePath(); in OverwriteAsync() 82 string path = GetTestFilePath(); in OpenFile_ThrowsIOExceptionAsync() 94 … Assert.ThrowsAsync<FileNotFoundException>(async () => await ReadAsync(GetTestFilePath())); in Read_FileNotFound() 104 string path = GetTestFilePath(); in WriteToReadOnlyFile() 127 string path = GetTestFilePath(); in DisposingEnumeratorClosesFileAsync() 146 string path = GetTestFilePath(); in TaskAlreadyCanceledAsync() 169 string path = GetTestFilePath(); in NullEncodingAsync() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/FileStream/ |
H A D | ctor_str_fm.cs | 43 string path = GetTestFilePath() + trailingChar; in MissingFile_ThrowsFileNotFound() 57 using (CreateFileStream(GetTestFilePath(), FileMode.Create)) in FileModeCreate() 64 string fileName = GetTestFilePath(); in FileModeCreateExisting() 83 using (CreateFileStream(GetTestFilePath(), FileMode.CreateNew)) in FileModeCreateNew() 90 string fileName = GetTestFilePath(); in FileModeCreateNewExistingThrows() 104 string fileName = GetTestFilePath(); in FileModeOpenThrows() 112 string fileName = GetTestFilePath(); in FileModeOpenExisting() 138 string fileName = GetTestFilePath(); in FileModeOpenOrCreateExisting() 157 string fileName = GetTestFilePath(); in FileModeTruncateThrows() 165 string fileName = GetTestFilePath(); in FileModeTruncateExisting() [all …]
|
H A D | ctor_str_fm_fa_fs.delete.cs | 17 string fileName = GetTestFilePath(); in FileShareDeleteNew() 34 string fileName = GetTestFilePath(); in FileShareDeleteNewRename() 35 string newFileName = GetTestFilePath(); in FileShareDeleteNewRename() 49 string fileName = GetTestFilePath(); in FileShareDeleteExisting() 72 string fileName = GetTestFilePath(); in FileShareDeleteExistingRename() 78 string newFileName = GetTestFilePath(); in FileShareDeleteExistingRename() 93 string fileName = GetTestFilePath(); in FileShareDeleteExistingMultipleClients() 126 string fileName = GetTestFilePath(); in FileShareWithoutDeleteThrows() 127 string newFileName = GetTestFilePath(); in FileShareWithoutDeleteThrows()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.Compression.ZipFile/tests/ |
H A D | ZipFileInvalidFileTests.cs | 14 … using (TempFile testArchive = CreateTempCopyFile(zfile("normal.zip"), GetTestFilePath())) in InvalidInstanceMethods() 41 … using (TempFile testArchive = CreateTempCopyFile(bad("EOCDmissing.zip"), GetTestFilePath())) in InvalidFiles() 136 using (TempFile updatedCopy = CreateTempCopyFile(filename, GetTestFilePath())) in UnsupportedCompressionRoutine() 172 FileInfo fileWithBadDate = new FileInfo(GetTestFilePath()); in InvalidDates() 176 string archivePath = GetTestFilePath(); in InvalidDates() 191 string archivePath = GetTestFilePath(); in FilesOutsideDirectory() 197 … Assert.Throws<IOException>(() => ZipFile.ExtractToDirectory(archivePath, GetTestFilePath())); in FilesOutsideDirectory() 203 string archivePath = GetTestFilePath(); in DirectoryEntryWithData() 209 … Assert.Throws<IOException>(() => ZipFile.ExtractToDirectory(archivePath, GetTestFilePath())); in DirectoryEntryWithData() 234 string tempDir = GetTestFilePath(); in Unix_ZipWithOSSpecificFileNames() [all …]
|
H A D | ZipFileConvenienceMethods.cs | 22 string noBaseDir = GetTestFilePath(); in CreateFromDirectoryNormal() 32 string withBaseDir = GetTestFilePath(); in CreateFromDirectory_IncludeBaseDirectory() 56 string noBaseDir = GetTestFilePath(); in CreateFromDirectoryUnicode() 79 using (var tempFolder = new TempDirectory(GetTestFilePath())) in ExtractToDirectoryNormal() 97 using (var tempFolder = new TempDirectory(GetTestFilePath())) in ExtractToDirectoryUnicode() 135 string file = GetTestFilePath(); in ExtractToFileExtension() 169 string tempFolder = GetTestFilePath(); in ExtractToDirectoryExtension() 183 string tempFolder = GetTestFilePath(); in ExtractToDirectoryExtension_Unicode() 192 using (var tempFolder = new TempDirectory(GetTestFilePath())) in CreatedEmptyDirectoriesRoundtrip() 197 string archivePath = GetTestFilePath(); in CreatedEmptyDirectoriesRoundtrip() [all …]
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/FileInfo/ |
H A D | Exists.cs | 15 string fileName = GetTestFilePath(); in InitializeExistsBeforeCreation() 26 string fileName = GetTestFilePath(); in InitializeExistsAfterCreation() 49 string path = GetTestFilePath(); in MissingDirectory() 58 string path = GetTestFilePath(); in CaseInsensitivity() 68 string path = GetTestFilePath(); in CaseSensitivity() 77 string fileName = GetTestFilePath(); in TrueForNewFileInfo() 87 string fileName = GetTestFilePath(); in FalseForDirectory() 97 string fileName = GetTestFilePath(); in TrueForNonRegularFile() 106 var path = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() 107 var linkPath = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget()
|
H A D | Length.cs | 15 var testFile = new FileInfo(GetTestFilePath()); in ZeroLength() 23 string path = GetTestFilePath(); in SetPositionThenWrite() 39 string path = GetTestFilePath(); in Length_Of_Directory_Throws_FileNotFoundException() 55 string path = GetTestFilePath(); in Length_MissingFile_ThrowsFileNotFound() 63 string path = GetTestFilePath(); in Length_MissingDirectory_ThrowsFileNotFound() 71 string path = GetTestFilePath(); in SymLinkLength() 72 string linkPath = GetTestFilePath(); in SymLinkLength()
|
/dports/lang/mono/mono-5.10.1.57/external/corefx/src/System.IO.FileSystem/tests/DirectoryInfo/ |
H A D | Exists.cs | 15 string dirName = GetTestFilePath(); in InitializeExistsBeforeCreation() 26 string dirName = GetTestFilePath(); in InitializeExistsAfterCreation() 61 string path = GetTestFilePath(); in MissingDirectory() 85 DirectoryInfo di = Directory.CreateDirectory(GetTestFilePath()); in TrueForCreatedDirectory() 92 string dirName = GetTestFilePath(); in TrueForNewDirectoryInfo() 102 string fileName = GetTestFilePath(); in FalseForFile() 112 string fileName = GetTestFilePath(); in FalseForNonRegularFile() 121 string path = GetTestFilePath(); in SymlinkToNewDirectoryInfo() 124 string linkPath = GetTestFilePath(); in SymlinkToNewDirectoryInfo() 134 var path = GetTestFilePath(); in SymLinksMayExistIndependentlyOfTarget() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/catapult/third_party/vinn/vinn/ |
H A D | vinn_unittest.py | 31 def GetTestFilePath(self, file_name): member in VinnUnittest 82 file_path = self.GetTestFilePath('simple.js') 94 file_path = self.GetTestFilePath('simple.js') 150 file_path = self.GetTestFilePath('quit_0_test.js') 155 file_path = self.GetTestFilePath('quit_1_test.js') 160 file_path = self.GetTestFilePath('quit_42_test.js') 165 file_path = self.GetTestFilePath('quit_274_test.js') 222 file_path = self.GetTestFilePath('load_error.html') 585 def GetTestFilePath(self, file_name): member in VinnV8ArgsTest 613 file_path = self.GetTestFilePath('simple.js') [all …]
|