C# 클래스 NinjaCoder.MvvmCross.Tests.Mocks.MockFile

Defines the MockFile type.
상속: System.IO.Abstractions.FileBase
파일 보기 프로젝트 열기: asudbury/NinjaCoderForMvvmCross 1 사용 예제들

공개 메소드들

메소드 설명
AppendAllText ( string path, string contents ) : void

Appends all text.

AppendAllText ( string path, string contents, Encoding encoding ) : void

Appends all text.

AppendText ( string path ) : StreamWriter

Appends the text.

Copy ( string sourceFileName, string destFileName ) : void

Copies the specified source file name.

Copy ( string sourceFileName, string destFileName, bool overwrite ) : void

Copies the specified source file name.

Create ( string path ) : Stream

Creates the specified path.

Create ( string path, int bufferSize ) : Stream

Creates the specified path.

Create ( string path, int bufferSize, FileOptions options ) : Stream

Creates the specified path.

Create ( string path, int bufferSize, FileOptions options, FileSecurity fileSecurity ) : Stream

Creates the specified path.

CreateText ( string path ) : StreamWriter

Creates the text.

Decrypt ( string path ) : void

Decrypts the specified path.

Delete ( string path ) : void

Deletes the specified path.

Encrypt ( string path ) : void

Encrypts the specified path.

Exists ( string path ) : bool

Exists the specified path.

GetAccessControl ( string path ) : FileSecurity

Gets the access control.

GetAccessControl ( string path, AccessControlSections includeSections ) : FileSecurity

Gets the access control.

GetAttributes ( string path ) : FileAttributes

Gets the attributes.

GetCreationTime ( string path ) : System.DateTime

Gets the creation time.

GetCreationTimeUtc ( string path ) : System.DateTime

Gets the creation time UTC.

GetLastAccessTime ( string path ) : System.DateTime

Gets the last access time.

GetLastAccessTimeUtc ( string path ) : System.DateTime

Gets the last access time UTC.

GetLastWriteTime ( string path ) : System.DateTime

Gets the last write time.

GetLastWriteTimeUtc ( string path ) : System.DateTime

Gets the last write time UTC.

Move ( string sourceFileName, string destFileName ) : void

Moves the specified source file name.

Open ( string path, FileMode mode ) : Stream

Opens the specified path.

Open ( string path, FileMode mode, FileAccess access ) : Stream

Opens the specified path.

Open ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream

Opens the specified path.

OpenRead ( string path ) : Stream

Opens the read.

OpenText ( string path ) : StreamReader

Opens the text.

OpenWrite ( string path ) : Stream

Opens the write.

ReadAllBytes ( string path ) : byte[]

Reads all bytes.

ReadAllLines ( string path ) : string[]

Reads all lines.

ReadAllLines ( string path, Encoding encoding ) : string[]

Reads all lines.

ReadAllText ( string path ) : string

Reads all text.

ReadAllText ( string path, Encoding encoding ) : string

Reads all text.

Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName ) : void

Replaces the specified source file name.

Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : void

Replaces the specified source file name.

SetAccessControl ( string path, FileSecurity fileSecurity ) : void

Sets the access control.

SetAttributes ( string path, FileAttributes fileAttributes ) : void

Sets the attributes.

SetCreationTime ( string path, System.DateTime creationTime ) : void

Sets the creation time.

SetCreationTimeUtc ( string path, System.DateTime creationTimeUtc ) : void

Sets the creation time UTC.

SetLastAccessTime ( string path, System.DateTime lastAccessTime ) : void

Sets the last access time.

SetLastAccessTimeUtc ( string path, System.DateTime lastAccessTimeUtc ) : void

Sets the last access time UTC.

SetLastWriteTime ( string path, System.DateTime lastWriteTime ) : void

Sets the last write time.

SetLastWriteTimeUtc ( string path, System.DateTime lastWriteTimeUtc ) : void

Sets the last write time UTC.

WriteAllBytes ( string path, byte bytes ) : void

Writes all bytes.

WriteAllLines ( string path, string contents ) : void

Writes all lines.

WriteAllLines ( string path, string contents, Encoding encoding ) : void

Writes all lines.

WriteAllText ( string path, string contents ) : void

Writes all text.

WriteAllText ( string path, string contents, Encoding encoding ) : void

Writes all text.

메소드 상세

AppendAllText() 공개 메소드

Appends all text.
public AppendAllText ( string path, string contents ) : void
path string The path.
contents string The contents.
리턴 void

AppendAllText() 공개 메소드

Appends all text.
public AppendAllText ( string path, string contents, Encoding encoding ) : void
path string The path.
contents string The contents.
encoding System.Text.Encoding The encoding.
리턴 void

AppendText() 공개 메소드

Appends the text.
public AppendText ( string path ) : StreamWriter
path string The path.
리턴 System.IO.StreamWriter

Copy() 공개 메소드

Copies the specified source file name.
public Copy ( string sourceFileName, string destFileName ) : void
sourceFileName string Name of the source file.
destFileName string Name of the dest file.
리턴 void

Copy() 공개 메소드

Copies the specified source file name.
public Copy ( string sourceFileName, string destFileName, bool overwrite ) : void
sourceFileName string Name of the source file.
destFileName string Name of the dest file.
overwrite bool if set to true [overwrite].
리턴 void

Create() 공개 메소드

Creates the specified path.
public Create ( string path ) : Stream
path string The path.
리턴 Stream

Create() 공개 메소드

Creates the specified path.
public Create ( string path, int bufferSize ) : Stream
path string The path.
bufferSize int Size of the buffer.
리턴 Stream

Create() 공개 메소드

Creates the specified path.
public Create ( string path, int bufferSize, FileOptions options ) : Stream
path string The path.
bufferSize int Size of the buffer.
options FileOptions The options.
리턴 Stream

Create() 공개 메소드

Creates the specified path.
public Create ( string path, int bufferSize, FileOptions options, FileSecurity fileSecurity ) : Stream
path string The path.
bufferSize int Size of the buffer.
options FileOptions The options.
fileSecurity System.Security.AccessControl.FileSecurity The file security.
리턴 Stream

CreateText() 공개 메소드

Creates the text.
public CreateText ( string path ) : StreamWriter
path string The path.
리턴 System.IO.StreamWriter

Decrypt() 공개 메소드

Decrypts the specified path.
public Decrypt ( string path ) : void
path string The path.
리턴 void

Delete() 공개 메소드

Deletes the specified path.
public Delete ( string path ) : void
path string The path.
리턴 void

Encrypt() 공개 메소드

Encrypts the specified path.
public Encrypt ( string path ) : void
path string The path.
리턴 void

Exists() 공개 메소드

Exists the specified path.
public Exists ( string path ) : bool
path string The path.
리턴 bool

GetAccessControl() 공개 메소드

Gets the access control.
public GetAccessControl ( string path ) : FileSecurity
path string The path.
리턴 System.Security.AccessControl.FileSecurity

GetAccessControl() 공개 메소드

Gets the access control.
public GetAccessControl ( string path, AccessControlSections includeSections ) : FileSecurity
path string The path.
includeSections AccessControlSections The include sections.
리턴 System.Security.AccessControl.FileSecurity

GetAttributes() 공개 메소드

Gets the attributes.
public GetAttributes ( string path ) : FileAttributes
path string The path.
리턴 FileAttributes

GetCreationTime() 공개 메소드

Gets the creation time.
public GetCreationTime ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

GetCreationTimeUtc() 공개 메소드

Gets the creation time UTC.
public GetCreationTimeUtc ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

GetLastAccessTime() 공개 메소드

Gets the last access time.
public GetLastAccessTime ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

GetLastAccessTimeUtc() 공개 메소드

Gets the last access time UTC.
public GetLastAccessTimeUtc ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

GetLastWriteTime() 공개 메소드

Gets the last write time.
public GetLastWriteTime ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

GetLastWriteTimeUtc() 공개 메소드

Gets the last write time UTC.
public GetLastWriteTimeUtc ( string path ) : System.DateTime
path string The path.
리턴 System.DateTime

Move() 공개 메소드

Moves the specified source file name.
public Move ( string sourceFileName, string destFileName ) : void
sourceFileName string Name of the source file.
destFileName string Name of the dest file.
리턴 void

Open() 공개 메소드

Opens the specified path.
public Open ( string path, FileMode mode ) : Stream
path string The path.
mode FileMode The mode.
리턴 Stream

Open() 공개 메소드

Opens the specified path.
public Open ( string path, FileMode mode, FileAccess access ) : Stream
path string The path.
mode FileMode The mode.
access FileAccess The access.
리턴 Stream

Open() 공개 메소드

Opens the specified path.
public Open ( string path, FileMode mode, FileAccess access, FileShare share ) : Stream
path string The path.
mode FileMode The mode.
access FileAccess The access.
share FileShare The share.
리턴 Stream

OpenRead() 공개 메소드

Opens the read.
public OpenRead ( string path ) : Stream
path string The path.
리턴 Stream

OpenText() 공개 메소드

Opens the text.
public OpenText ( string path ) : StreamReader
path string The path.
리턴 System.IO.StreamReader

OpenWrite() 공개 메소드

Opens the write.
public OpenWrite ( string path ) : Stream
path string The path.
리턴 Stream

ReadAllBytes() 공개 메소드

Reads all bytes.
public ReadAllBytes ( string path ) : byte[]
path string The path.
리턴 byte[]

ReadAllLines() 공개 메소드

Reads all lines.
public ReadAllLines ( string path ) : string[]
path string The path.
리턴 string[]

ReadAllLines() 공개 메소드

Reads all lines.
public ReadAllLines ( string path, Encoding encoding ) : string[]
path string The path.
encoding System.Text.Encoding The encoding.
리턴 string[]

ReadAllText() 공개 메소드

Reads all text.
public ReadAllText ( string path ) : string
path string The path.
리턴 string

ReadAllText() 공개 메소드

Reads all text.
public ReadAllText ( string path, Encoding encoding ) : string
path string The path.
encoding System.Text.Encoding The encoding.
리턴 string

Replace() 공개 메소드

Replaces the specified source file name.
public Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName ) : void
sourceFileName string Name of the source file.
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
리턴 void

Replace() 공개 메소드

Replaces the specified source file name.
public Replace ( string sourceFileName, string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : void
sourceFileName string Name of the source file.
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
ignoreMetadataErrors bool if set to true [ignore metadata errors].
리턴 void

SetAccessControl() 공개 메소드

Sets the access control.
public SetAccessControl ( string path, FileSecurity fileSecurity ) : void
path string The path.
fileSecurity System.Security.AccessControl.FileSecurity The file security.
리턴 void

SetAttributes() 공개 메소드

Sets the attributes.
public SetAttributes ( string path, FileAttributes fileAttributes ) : void
path string The path.
fileAttributes FileAttributes The file attributes.
리턴 void

SetCreationTime() 공개 메소드

Sets the creation time.
public SetCreationTime ( string path, System.DateTime creationTime ) : void
path string The path.
creationTime System.DateTime The creation time.
리턴 void

SetCreationTimeUtc() 공개 메소드

Sets the creation time UTC.
public SetCreationTimeUtc ( string path, System.DateTime creationTimeUtc ) : void
path string The path.
creationTimeUtc System.DateTime The creation time UTC.
리턴 void

SetLastAccessTime() 공개 메소드

Sets the last access time.
public SetLastAccessTime ( string path, System.DateTime lastAccessTime ) : void
path string The path.
lastAccessTime System.DateTime The last access time.
리턴 void

SetLastAccessTimeUtc() 공개 메소드

Sets the last access time UTC.
public SetLastAccessTimeUtc ( string path, System.DateTime lastAccessTimeUtc ) : void
path string The path.
lastAccessTimeUtc System.DateTime The last access time UTC.
리턴 void

SetLastWriteTime() 공개 메소드

Sets the last write time.
public SetLastWriteTime ( string path, System.DateTime lastWriteTime ) : void
path string The path.
lastWriteTime System.DateTime The last write time.
리턴 void

SetLastWriteTimeUtc() 공개 메소드

Sets the last write time UTC.
public SetLastWriteTimeUtc ( string path, System.DateTime lastWriteTimeUtc ) : void
path string The path.
lastWriteTimeUtc System.DateTime The last write time UTC.
리턴 void

WriteAllBytes() 공개 메소드

Writes all bytes.
public WriteAllBytes ( string path, byte bytes ) : void
path string The path.
bytes byte The bytes.
리턴 void

WriteAllLines() 공개 메소드

Writes all lines.
public WriteAllLines ( string path, string contents ) : void
path string The path.
contents string The contents.
리턴 void

WriteAllLines() 공개 메소드

Writes all lines.
public WriteAllLines ( string path, string contents, Encoding encoding ) : void
path string The path.
contents string The contents.
encoding System.Text.Encoding The encoding.
리턴 void

WriteAllText() 공개 메소드

Writes all text.
public WriteAllText ( string path, string contents ) : void
path string The path.
contents string The contents.
리턴 void

WriteAllText() 공개 메소드

Writes all text.
public WriteAllText ( string path, string contents, Encoding encoding ) : void
path string The path.
contents string The contents.
encoding System.Text.Encoding The encoding.
리턴 void