C# Class System.IO.Abstractions.TestingHelpers.MockFileSystem

Inheritance: IFileSystem, IMockFileDataAccessor
Datei anzeigen Open project: tathamoddie/System.IO.Abstractions Class Usage Examples

Public Methods

Method Description
AddDirectory ( string path ) : void
AddFile ( string path, MockFileData mockFile ) : void
FileExists ( string path ) : bool
GetFile ( string path ) : MockFileData
MockFileSystem ( ) : System.Collections.Generic
MockFileSystem ( MockFileData>.IDictionary files, string currentDirectory = "" ) : System.Collections.Generic
RemoveFile ( string path ) : void

Private Methods

Method Description
FixPath ( string path ) : string
GetFileWithoutFixingPath ( string path ) : MockFileData

Method Details

AddDirectory() public method

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

AddFile() public method

public AddFile ( string path, MockFileData mockFile ) : void
path string
mockFile MockFileData
return void

FileExists() public method

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

GetFile() public method

public GetFile ( string path ) : MockFileData
path string
return MockFileData

MockFileSystem() public method

public MockFileSystem ( ) : System.Collections.Generic
return System.Collections.Generic

MockFileSystem() public method

public MockFileSystem ( MockFileData>.IDictionary files, string currentDirectory = "" ) : System.Collections.Generic
files MockFileData>.IDictionary
currentDirectory string
return System.Collections.Generic

RemoveFile() public method

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