C# Class NuGet.Test.Mocks.MockFileSystem

Inheritance: IFileSystem
Afficher le fichier Open project: xero-github/Nuget 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, Stream stream, bool overrideIfExists ) : 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, bool recursive ) : IEnumerable
GetFiles ( string path, string filter, bool recursive ) : IEnumerable
GetFullPath ( string path ) : string
GetLastAccessed ( string path ) : DateTimeOffset
GetLastModified ( string path ) : DateTimeOffset
MockFileSystem ( ) : System
MockFileSystem ( string root ) : System
OpenFile ( string path ) : Stream
ReadAllText ( string path ) : string

Private Methods

Méthode Description
GetFilterRegex ( string wildcard ) : Regex
GetPattern ( string token ) : string

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, Stream stream, bool overrideIfExists ) : void
path string
stream Stream
overrideIfExists bool
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, bool recursive ) : IEnumerable
path string
recursive bool
Résultat IEnumerable

GetFiles() public méthode

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

GetFullPath() public méthode

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

GetLastAccessed() public méthode

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

GetLastModified() public méthode

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

MockFileSystem() public méthode

public MockFileSystem ( ) : System
Résultat System

MockFileSystem() public méthode

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

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