C# Class Pytocs.TypeInference.FakeFileSystem

Inheritance: IFileSystem
ファイルを表示 Open project: uxmal/pytocs Class Usage Examples

Public Methods

Method Description
CombinePath ( string dir, string file ) : string
CreateDirectory ( string path ) : void
CreateFileStream ( string outputFileName, FileMode mode, FileAccess access ) : Stream
CreateStreamReader ( string path ) : TextReader
CreateStreamWriter ( Stream stm, Encoding encoding ) : TextWriter
DeleteDirectory ( string path ) : void
DeleteFile ( string path ) : void
Dir ( string name ) : FakeFileSystem
DirectoryExists ( string path ) : bool
End ( ) : FakeFileSystem
FakeFileSystem ( ) : System
File ( string name ) : FakeFileSystem
FileExists ( string path ) : bool
GetDirectoryName ( string path ) : string
GetFileName ( string path ) : string
GetFileSystemEntries ( string path ) : string[]
GetFullPath ( string file ) : string
ReadFile ( string path ) : string
ReadFileBytes ( string path ) : byte[]
WriteFile ( string path, string contents ) : void
getFileHash ( string path ) : string
getSystemTempDir ( ) : string
makePathString ( ) : string
relPath ( string path1, string path2 ) : string

Private Methods

Method Description
Traverse ( IEnumerable segs ) : FakeDirectory

Method Details

CombinePath() public method

public CombinePath ( string dir, string file ) : string
dir string
file string
return string

CreateDirectory() public method

public CreateDirectory ( string path ) : void
path string
return void

CreateFileStream() public method

public CreateFileStream ( string outputFileName, FileMode mode, FileAccess access ) : Stream
outputFileName string
mode FileMode
access FileAccess
return Stream

CreateStreamReader() public method

public CreateStreamReader ( string path ) : TextReader
path string
return TextReader

CreateStreamWriter() public method

public CreateStreamWriter ( Stream stm, Encoding encoding ) : TextWriter
stm Stream
encoding System.Text.Encoding
return System.IO.TextWriter

DeleteDirectory() public method

public DeleteDirectory ( string path ) : void
path string
return void

DeleteFile() public method

public DeleteFile ( string path ) : void
path string
return void

Dir() public method

public Dir ( string name ) : FakeFileSystem
name string
return FakeFileSystem

DirectoryExists() public method

public DirectoryExists ( string path ) : bool
path string
return bool

End() public method

public End ( ) : FakeFileSystem
return FakeFileSystem

FakeFileSystem() public method

public FakeFileSystem ( ) : System
return System

File() public method

public File ( string name ) : FakeFileSystem
name string
return FakeFileSystem

FileExists() public method

public FileExists ( string path ) : bool
path string
return bool

GetDirectoryName() public method

public GetDirectoryName ( string path ) : string
path string
return string

GetFileName() public method

public GetFileName ( string path ) : string
path string
return string

GetFileSystemEntries() public method

public GetFileSystemEntries ( string path ) : string[]
path string
return string[]

GetFullPath() public method

public GetFullPath ( string file ) : string
file string
return string

ReadFile() public method

public ReadFile ( string path ) : string
path string
return string

ReadFileBytes() public method

public ReadFileBytes ( string path ) : byte[]
path string
return byte[]

WriteFile() public method

public WriteFile ( string path, string contents ) : void
path string
contents string
return void

getFileHash() public method

public getFileHash ( string path ) : string
path string
return string

getSystemTempDir() public method

public getSystemTempDir ( ) : string
return string

makePathString() public method

public makePathString ( ) : string
return string

relPath() public method

public relPath ( string path1, string path2 ) : string
path1 string
path2 string
return string