C# Class fs4net.Framework.Test.MockFileSystem

Inheritance: IFileSystem, IInternalFileSystem
Show file Open project: toroso/fs4net

Public Methods

Method Description
AllDrives ( ) : IEnumerable
CopyAndOverwriteFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
CopyFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
CreateAppendStream ( RootedCanonicalPath path ) : Stream
CreateDirectory ( RootedCanonicalPath path ) : void
CreateModifyStream ( RootedCanonicalPath path ) : Stream
CreateReadStream ( RootedCanonicalPath path ) : Stream
CreateWriteStream ( RootedCanonicalPath path ) : Stream
DeleteDirectory ( RootedCanonicalPath path, bool recursive ) : void
DeleteFile ( RootedCanonicalPath path ) : void
DirectoryDescribing ( string fullPath ) : RootedDirectory
DirectoryDescribingCurrentDirectory ( ) : RootedDirectory
DirectoryDescribingSpecialFolder ( Environment folder ) : RootedDirectory
DirectoryDescribingTemporaryDirectory ( ) : RootedDirectory
DirectoryFromCurrentDirectory ( string path ) : RootedDirectory
DriveDescribing ( string driveName ) : Drive
FileDescribing ( string fullPath ) : RootedFile
FileFromCurrentDirectory ( string path ) : RootedFile
GetCurrentDirectory ( ) : string
GetDirectoriesInDirectory ( RootedCanonicalPath path ) : IEnumerable
GetDirectoryCreationTime ( RootedCanonicalPath path ) : System.DateTime
GetDirectoryLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
GetDirectoryLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
GetFileCreationTime ( RootedCanonicalPath path ) : System.DateTime
GetFileLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
GetFileLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
GetFileSize ( RootedCanonicalPath path ) : long
GetFilesInDirectory ( RootedCanonicalPath path ) : IEnumerable
IsDirectory ( RootedCanonicalPath path ) : bool
IsFile ( RootedCanonicalPath path ) : bool
MoveDirectory ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
MoveFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
SetCurrentDirectory ( RootedCanonicalPath path ) : void
SetDirectoryCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetDirectoryLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetDirectoryLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
SetFileLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void

Method Details

AllDrives() public method

public AllDrives ( ) : IEnumerable
return IEnumerable

CopyAndOverwriteFile() public method

public CopyAndOverwriteFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source RootedCanonicalPath
destination RootedCanonicalPath
return void

CopyFile() public method

public CopyFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source RootedCanonicalPath
destination RootedCanonicalPath
return void

CreateAppendStream() public method

public CreateAppendStream ( RootedCanonicalPath path ) : Stream
path RootedCanonicalPath
return Stream

CreateDirectory() public method

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

CreateModifyStream() public method

public CreateModifyStream ( RootedCanonicalPath path ) : Stream
path RootedCanonicalPath
return Stream

CreateReadStream() public method

public CreateReadStream ( RootedCanonicalPath path ) : Stream
path RootedCanonicalPath
return Stream

CreateWriteStream() public method

public CreateWriteStream ( RootedCanonicalPath path ) : Stream
path RootedCanonicalPath
return Stream

DeleteDirectory() public method

public DeleteDirectory ( RootedCanonicalPath path, bool recursive ) : void
path RootedCanonicalPath
recursive bool
return void

DeleteFile() public method

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

DirectoryDescribing() public method

public DirectoryDescribing ( string fullPath ) : RootedDirectory
fullPath string
return RootedDirectory

DirectoryDescribingCurrentDirectory() public method

public DirectoryDescribingCurrentDirectory ( ) : RootedDirectory
return RootedDirectory

DirectoryDescribingSpecialFolder() public method

public DirectoryDescribingSpecialFolder ( Environment folder ) : RootedDirectory
folder System.Environment
return RootedDirectory

DirectoryDescribingTemporaryDirectory() public method

public DirectoryDescribingTemporaryDirectory ( ) : RootedDirectory
return RootedDirectory

DirectoryFromCurrentDirectory() public method

public DirectoryFromCurrentDirectory ( string path ) : RootedDirectory
path string
return RootedDirectory

DriveDescribing() public method

public DriveDescribing ( string driveName ) : Drive
driveName string
return Drive

FileDescribing() public method

public FileDescribing ( string fullPath ) : RootedFile
fullPath string
return RootedFile

FileFromCurrentDirectory() public method

public FileFromCurrentDirectory ( string path ) : RootedFile
path string
return RootedFile

GetCurrentDirectory() public method

public GetCurrentDirectory ( ) : string
return string

GetDirectoriesInDirectory() public method

public GetDirectoriesInDirectory ( RootedCanonicalPath path ) : IEnumerable
path RootedCanonicalPath
return IEnumerable

GetDirectoryCreationTime() public method

public GetDirectoryCreationTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetDirectoryLastAccessTime() public method

public GetDirectoryLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetDirectoryLastWriteTime() public method

public GetDirectoryLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetFileCreationTime() public method

public GetFileCreationTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetFileLastAccessTime() public method

public GetFileLastAccessTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetFileLastWriteTime() public method

public GetFileLastWriteTime ( RootedCanonicalPath path ) : System.DateTime
path RootedCanonicalPath
return System.DateTime

GetFileSize() public method

public GetFileSize ( RootedCanonicalPath path ) : long
path RootedCanonicalPath
return long

GetFilesInDirectory() public method

public GetFilesInDirectory ( RootedCanonicalPath path ) : IEnumerable
path RootedCanonicalPath
return IEnumerable

IsDirectory() public method

public IsDirectory ( RootedCanonicalPath path ) : bool
path RootedCanonicalPath
return bool

IsFile() public method

public IsFile ( RootedCanonicalPath path ) : bool
path RootedCanonicalPath
return bool

MoveDirectory() public method

public MoveDirectory ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source RootedCanonicalPath
destination RootedCanonicalPath
return void

MoveFile() public method

public MoveFile ( RootedCanonicalPath source, RootedCanonicalPath destination ) : void
source RootedCanonicalPath
destination RootedCanonicalPath
return void

SetCurrentDirectory() public method

public SetCurrentDirectory ( RootedCanonicalPath path ) : void
path RootedCanonicalPath
return void

SetDirectoryCreationTime() public method

public SetDirectoryCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void

SetDirectoryLastAccessTime() public method

public SetDirectoryLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void

SetDirectoryLastWriteTime() public method

public SetDirectoryLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void

SetFileCreationTime() public method

public SetFileCreationTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void

SetFileLastAccessTime() public method

public SetFileLastAccessTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void

SetFileLastWriteTime() public method

public SetFileLastWriteTime ( RootedCanonicalPath path, System.DateTime at ) : void
path RootedCanonicalPath
at System.DateTime
return void