C# 클래스 NuSelfUpdate.Tests.Helpers.MockFileSystem

상속: IExtendedFileSystem
파일 보기 프로젝트 열기: caleb-vear/NuSelfUpdate 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
GetFilterRegex ( string wildcard ) : Regex
GetPattern ( string token ) : string
IndexOfAll ( string value, char ch ) : IEnumerable
InternalGetDirectories ( string path ) : IEnumerable

메소드 상세

AddFile() 공개 메소드

public AddFile ( string path ) : void
path string
리턴 void

AddFile() 공개 메소드

public AddFile ( string path, Func getStream ) : void
path string
getStream Func
리턴 void

AddFile() 공개 메소드

public AddFile ( string path, Stream stream ) : void
path string
stream Stream
리턴 void

AddFile() 공개 메소드

public AddFile ( string path, string content ) : void
path string
content string
리턴 void

CreateDirectory() 공개 메소드

public CreateDirectory ( string path ) : void
path string
리턴 void

DeleteDirectory() 공개 메소드

public DeleteDirectory ( string path, bool recursive = false ) : void
path string
recursive bool
리턴 void

DeleteFile() 공개 메소드

public DeleteFile ( string path ) : void
path string
리턴 void

DirectoryExists() 공개 메소드

public DirectoryExists ( string path ) : bool
path string
리턴 bool

FileExists() 공개 메소드

public FileExists ( string path ) : bool
path string
리턴 bool

GetCreated() 공개 메소드

public GetCreated ( string path ) : DateTimeOffset
path string
리턴 DateTimeOffset

GetDirectories() 공개 메소드

public GetDirectories ( string path ) : IEnumerable
path string
리턴 IEnumerable

GetFiles() 공개 메소드

public GetFiles ( string path ) : IEnumerable
path string
리턴 IEnumerable

GetFiles() 공개 메소드

public GetFiles ( string path, string filter ) : IEnumerable
path string
filter string
리턴 IEnumerable

GetFullPath() 공개 메소드

public GetFullPath ( string path ) : string
path string
리턴 string

GetLastModified() 공개 메소드

public GetLastModified ( string path ) : DateTimeOffset
path string
리턴 DateTimeOffset

MockFileSystem() 공개 메소드

public MockFileSystem ( string appDirectory ) : System
appDirectory string
리턴 System

MoveFile() 공개 메소드

public MoveFile ( string sourcePath, string destinationPath ) : void
sourcePath string
destinationPath string
리턴 void

OpenFile() 공개 메소드

public OpenFile ( string path ) : Stream
path string
리턴 Stream

ReadAllText() 공개 메소드

public ReadAllText ( string path ) : string
path string
리턴 string