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

Defines the MockFileInfo type.
Inheritance: System.IO.Abstractions.FileInfoBase
Afficher le fichier Open project: asudbury/NinjaCoderForMvvmCross Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Appends the text.
public AppendText ( ) : StreamWriter
Résultat System.IO.StreamWriter

CopyTo() public méthode

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

CopyTo() public méthode

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].
Résultat System.IO.Abstractions.FileInfoBase

Create() public méthode

Creates this instance.
public Create ( ) : Stream
Résultat Stream

CreateText() public méthode

Creates the text.
public CreateText ( ) : StreamWriter
Résultat System.IO.StreamWriter

Decrypt() public méthode

Decrypts this instance.
public Decrypt ( ) : void
Résultat void

Delete() public méthode

Deletes this instance.
public Delete ( ) : void
Résultat void

Encrypt() public méthode

Encrypts this instance.
public Encrypt ( ) : void
Résultat void

GetAccessControl() public méthode

Gets the access control.
public GetAccessControl ( ) : FileSecurity
Résultat System.Security.AccessControl.FileSecurity

GetAccessControl() public méthode

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

MoveTo() public méthode

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

Open() public méthode

Opens the specified mode.
public Open ( FileMode mode ) : Stream
mode FileMode The mode.
Résultat Stream

Open() public méthode

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

Open() public méthode

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.
Résultat Stream

OpenRead() public méthode

Opens the read.
public OpenRead ( ) : Stream
Résultat Stream

OpenText() public méthode

Opens the text.
public OpenText ( ) : StreamReader
Résultat System.IO.StreamReader

OpenWrite() public méthode

Opens the write.
public OpenWrite ( ) : Stream
Résultat Stream

Refresh() public méthode

Refreshes this instance.
public Refresh ( ) : void
Résultat void

Replace() public méthode

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.
Résultat System.IO.Abstractions.FileInfoBase

Replace() public méthode

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].
Résultat System.IO.Abstractions.FileInfoBase

SetAccessControl() public méthode

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