C# Class NinjaCoder.MvvmCross.Tests.Mocks.MockFileInfo

Defines the MockFileInfo type.
Inheritance: System.IO.Abstractions.FileInfoBase
Mostrar archivo Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Public Methods

Method Description
AppendText ( ) : StreamWriter

Appends the text.

CopyTo ( string destFileName ) : System.IO.Abstractions.FileInfoBase

Copies to.

CopyTo ( string destFileName, bool overwrite ) : System.IO.Abstractions.FileInfoBase

Copies to.

Create ( ) : Stream

Creates this instance.

CreateText ( ) : StreamWriter

Creates the text.

Decrypt ( ) : void

Decrypts this instance.

Delete ( ) : void

Deletes this instance.

Encrypt ( ) : void

Encrypts this instance.

GetAccessControl ( ) : FileSecurity

Gets the access control.

GetAccessControl ( AccessControlSections includeSections ) : FileSecurity

Gets the access control.

MoveTo ( string destFileName ) : void

Moves to.

Open ( FileMode mode ) : Stream

Opens the specified mode.

Open ( FileMode mode, FileAccess access ) : Stream

Opens the specified mode.

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

Opens the specified mode.

OpenRead ( ) : Stream

Opens the read.

OpenText ( ) : StreamReader

Opens the text.

OpenWrite ( ) : Stream

Opens the write.

Refresh ( ) : void

Refreshes this instance.

Replace ( string destinationFileName, string destinationBackupFileName ) : System.IO.Abstractions.FileInfoBase

Replaces the specified destination file name.

Replace ( string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : System.IO.Abstractions.FileInfoBase

Replaces the specified destination file name.

SetAccessControl ( FileSecurity fileSecurity ) : void

Sets the access control.

Method Details

AppendText() public method

Appends the text.
public AppendText ( ) : StreamWriter
return System.IO.StreamWriter

CopyTo() public method

Copies to.
public CopyTo ( string destFileName ) : System.IO.Abstractions.FileInfoBase
destFileName string Name of the dest file.
return System.IO.Abstractions.FileInfoBase

CopyTo() public method

Copies to.
public CopyTo ( string destFileName, bool overwrite ) : System.IO.Abstractions.FileInfoBase
destFileName string Name of the dest file.
overwrite bool if set to true [overwrite].
return System.IO.Abstractions.FileInfoBase

Create() public method

Creates this instance.
public Create ( ) : Stream
return Stream

CreateText() public method

Creates the text.
public CreateText ( ) : StreamWriter
return System.IO.StreamWriter

Decrypt() public method

Decrypts this instance.
public Decrypt ( ) : void
return void

Delete() public method

Deletes this instance.
public Delete ( ) : void
return void

Encrypt() public method

Encrypts this instance.
public Encrypt ( ) : void
return void

GetAccessControl() public method

Gets the access control.
public GetAccessControl ( ) : FileSecurity
return System.Security.AccessControl.FileSecurity

GetAccessControl() public method

Gets the access control.
public GetAccessControl ( AccessControlSections includeSections ) : FileSecurity
includeSections AccessControlSections The include sections.
return System.Security.AccessControl.FileSecurity

MoveTo() public method

Moves to.
public MoveTo ( string destFileName ) : void
destFileName string Name of the dest file.
return void

Open() public method

Opens the specified mode.
public Open ( FileMode mode ) : Stream
mode FileMode The mode.
return Stream

Open() public method

Opens the specified mode.
public Open ( FileMode mode, FileAccess access ) : Stream
mode FileMode The mode.
access FileAccess The access.
return Stream

Open() public method

Opens the specified mode.
public Open ( FileMode mode, FileAccess access, FileShare share ) : Stream
mode FileMode The mode.
access FileAccess The access.
share FileShare The share.
return Stream

OpenRead() public method

Opens the read.
public OpenRead ( ) : Stream
return Stream

OpenText() public method

Opens the text.
public OpenText ( ) : StreamReader
return System.IO.StreamReader

OpenWrite() public method

Opens the write.
public OpenWrite ( ) : Stream
return Stream

Refresh() public method

Refreshes this instance.
public Refresh ( ) : void
return void

Replace() public method

Replaces the specified destination file name.
public Replace ( string destinationFileName, string destinationBackupFileName ) : System.IO.Abstractions.FileInfoBase
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
return System.IO.Abstractions.FileInfoBase

Replace() public method

Replaces the specified destination file name.
public Replace ( string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors ) : System.IO.Abstractions.FileInfoBase
destinationFileName string Name of the destination file.
destinationBackupFileName string Name of the destination backup file.
ignoreMetadataErrors bool if set to true [ignore metadata errors].
return System.IO.Abstractions.FileInfoBase

SetAccessControl() public method

Sets the access control.
public SetAccessControl ( FileSecurity fileSecurity ) : void
fileSecurity System.Security.AccessControl.FileSecurity The file security.
return void