61 references to _fileSystem
Microsoft.VisualBasic.Forms.Tests (61)
System\Windows\Forms\FileSystemProxyTests.vb (61)
33_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 36_fileSystem.CopyDirectory( 53_fileSystem.WriteAllBytes(sourceFileName, data, append:=False) 56_fileSystem.CopyDirectory(sourceDirectoryName, destinationDirectoryName, UIOption.OnlyErrorDialogs) 68_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 71_fileSystem.CopyFile(sourceFileName, destinationFileName, showUI:=UIOption.OnlyErrorDialogs) 72Dim bytes As Byte() = _fileSystem.ReadAllBytes(destinationFileName) 82_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 85_fileSystem.CopyFile( 91Dim bytes As Byte() = _fileSystem.ReadAllBytes(destinationFileName) 101_fileSystem.WriteAllBytes(sourceFileName, data, append:=False) 104_fileSystem.DeleteDirectory( 117_fileSystem.WriteAllBytes(sourceFileName, data, append:=False) 120_fileSystem.DeleteDirectory( 132_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 135_fileSystem.DeleteFile( 141_fileSystem.DeleteDirectory( 151_fileSystem.WriteAllBytes(sourceFileName, data, append:=False) 154_fileSystem.DeleteFile( 164_fileSystem.Drives.Count.Should.Be(FileIO.FileSystem.Drives.Count) 189_fileSystem.WriteAllText(fileA, "A", append:=False) 192_fileSystem.WriteAllText(fileC, "C", append:=False) 193Dim filenames As ReadOnlyCollection(Of String) = _fileSystem.FindInFiles( 200_fileSystem.CombinePath(sourceDirectoryName, NameOf(fileA)).Should.Be(expected) 201filenames = _fileSystem.FindInFiles( 215_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 218_fileSystem.MoveDirectory( 234_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 237_fileSystem.MoveFile(sourceFileName, file2, showUI:=UIOption.OnlyErrorDialogs) 238Dim bytes As Byte() = _fileSystem.ReadAllBytes(file2) 250_fileSystem.WriteAllBytes(sourceFileName, byteArray, append:=False) 253_fileSystem.MoveFile( 258Dim bytes As Byte() = _fileSystem.ReadAllBytes(destinationFileName) 269_fileSystem.WriteAllText(fileA, "A", append:=False) 270Using fileWriter As IO.StreamWriter = _fileSystem.OpenTextFileWriter( 276Using fileReader As IO.StreamReader = _fileSystem.OpenTextFileReader( 290_fileSystem.WriteAllText(fileCSV, _sampleDataCVS, append:=False) 293reader = _fileSystem.OpenTextFieldParser(fileCSV) 297reader = _fileSystem.OpenTextFieldParser(fileCSV, delimiter) 319_fileSystem.WriteAllText(fileA, "A", append:=False) 320Using fileWriter As IO.StreamWriter = _fileSystem.OpenTextFileWriter(fileA, append:=False) 323Using fileReader As IO.StreamReader = _fileSystem.OpenTextFileReader(fileA, Encoding.ASCII) 333_fileSystem.WriteAllText(fileCSV, _sampleDataFixed, append:=False) 334Dim reader As TextFieldParser = _fileSystem.OpenTextFieldParser(fileCSV, 5, 5, 4, 7, 4, 7) 359_fileSystem.WriteAllText(fileA, "A", append:=False) 360Using fileReader As IO.StreamReader = _fileSystem.OpenTextFileReader(fileA) 371_fileSystem.WriteAllBytes(fileA, byteArray, append:=False) 373Dim bytes As Byte() = _fileSystem.ReadAllBytes(fileA) 382_fileSystem.WriteAllText(fileA, "A", append:=False) 383Dim text As String = _fileSystem.ReadAllText(fileA) 391_fileSystem.WriteAllText(fileA, "A", append:=False, Encoding.UTF8) 392Dim text As String = _fileSystem.ReadAllText(fileA, Encoding.UTF8) 398_fileSystem.SpecialDirectories.AllUsersApplicationData. 400_fileSystem.SpecialDirectories.CurrentUserApplicationData. 402_fileSystem.SpecialDirectories.Desktop.Should.Be(SpecialDirectories.Desktop) 403_fileSystem.SpecialDirectories.MyDocuments.Should.Be(SpecialDirectories.MyDocuments) 404_fileSystem.SpecialDirectories.MyMusic.Should.Be(SpecialDirectories.MyMusic) 405_fileSystem.SpecialDirectories.MyPictures.Should.Be(SpecialDirectories.MyPictures) 406_fileSystem.SpecialDirectories.ProgramFiles.Should.Be(SpecialDirectories.ProgramFiles) 407_fileSystem.SpecialDirectories.Programs.Should.Be(SpecialDirectories.Programs) 408Dim temp As String = _fileSystem.SpecialDirectories.Temp