C# Class NuSelfUpdate.Tests.Helpers.MockFileSystem

Inheritance: IExtendedFileSystem
Afficher le fichier Open project: caleb-vear/NuSelfUpdate Class Usage Examples

Méthodes publiques

Méthode Description
AddFile ( string path ) : void
AddFile ( string path, Func getStream ) : void
AddFile ( string path, Stream stream ) : void
AddFile ( string path, string content ) : void
CreateDirectory ( string path ) : void
DeleteDirectory ( string path, bool recursive = false ) : void
DeleteFile ( string path ) : void
DirectoryExists ( string path ) : bool
FileExists ( string path ) : bool
GetCreated ( string path ) : DateTimeOffset
GetDirectories ( string path ) : IEnumerable
GetFiles ( string path ) : IEnumerable
GetFiles ( string path, string filter ) : IEnumerable
GetFullPath ( string path ) : string
GetLastModified ( string path ) : DateTimeOffset
MockFileSystem ( string appDirectory ) : System
MoveFile ( string sourcePath, string destinationPath ) : void
OpenFile ( string path ) : Stream
ReadAllText ( string path ) : string

Private Methods

Méthode Description
GetFilterRegex ( string wildcard ) : Regex
GetPattern ( string token ) : string
IndexOfAll ( string value, char ch ) : IEnumerable
InternalGetDirectories ( string path ) : IEnumerable

Method Details

AddFile() public méthode

public AddFile ( string path ) : void
path string
Résultat void

AddFile() public méthode

public AddFile ( string path, Func getStream ) : void
path string
getStream Func
Résultat void

AddFile() public méthode

public AddFile ( string path, Stream stream ) : void
path string
stream Stream
Résultat void

AddFile() public méthode

public AddFile ( string path, string content ) : void
path string
content string
Résultat void

CreateDirectory() public méthode

public CreateDirectory ( string path ) : void
path string
Résultat void

DeleteDirectory() public méthode

public DeleteDirectory ( string path, bool recursive = false ) : void
path string
recursive bool
Résultat void

DeleteFile() public méthode

public DeleteFile ( string path ) : void
path string
Résultat void

DirectoryExists() public méthode

public DirectoryExists ( string path ) : bool
path string
Résultat bool

FileExists() public méthode

public FileExists ( string path ) : bool
path string
Résultat bool

GetCreated() public méthode

public GetCreated ( string path ) : DateTimeOffset
path string
Résultat DateTimeOffset

GetDirectories() public méthode

public GetDirectories ( string path ) : IEnumerable
path string
Résultat IEnumerable

GetFiles() public méthode

public GetFiles ( string path ) : IEnumerable
path string
Résultat IEnumerable

GetFiles() public méthode

public GetFiles ( string path, string filter ) : IEnumerable
path string
filter string
Résultat IEnumerable

GetFullPath() public méthode

public GetFullPath ( string path ) : string
path string
Résultat string

GetLastModified() public méthode

public GetLastModified ( string path ) : DateTimeOffset
path string
Résultat DateTimeOffset

MockFileSystem() public méthode

public MockFileSystem ( string appDirectory ) : System
appDirectory string
Résultat System

MoveFile() public méthode

public MoveFile ( string sourcePath, string destinationPath ) : void
sourcePath string
destinationPath string
Résultat void

OpenFile() public méthode

public OpenFile ( string path ) : Stream
path string
Résultat Stream

ReadAllText() public méthode

public ReadAllText ( string path ) : string
path string
Résultat string