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

Afficher le fichier Open project: tathamoddie/System.IO.Abstractions Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultDateTimeOffset DateTimeOffset
DefaultEncoding System.Text.Encoding
NullObject MockFileData

Méthodes publiques

Méthode Description
MockFileData ( byte contents ) : System.Linq

Initializes a new instance of the MockFileData class with the content of contents.

MockFileData ( string textContents ) : System.Linq

Initializes a new instance of the MockFileData class with the content of textContents using the encoding of DefaultEncoding.

MockFileData ( string textContents, Encoding encoding ) : System.Linq

Initializes a new instance of the MockFileData class with the content of textContents using the encoding of encoding.

The constructor respect the BOM of encoding.

Private Methods

Méthode Description
MockFileData ( ) : System.Linq

Initializes a new instance of the MockFileData class with an empty content.

Method Details

MockFileData() public méthode

Initializes a new instance of the MockFileData class with the content of contents.
Thrown if is .
public MockFileData ( byte contents ) : System.Linq
contents byte The actual content.
Résultat System.Linq

MockFileData() public méthode

Initializes a new instance of the MockFileData class with the content of textContents using the encoding of DefaultEncoding.
public MockFileData ( string textContents ) : System.Linq
textContents string The textual content encoded into bytes with .
Résultat System.Linq

MockFileData() public méthode

Initializes a new instance of the MockFileData class with the content of textContents using the encoding of encoding.
The constructor respect the BOM of encoding.
public MockFileData ( string textContents, Encoding encoding ) : System.Linq
textContents string The textual content.
encoding System.Text.Encoding The specific encoding used the encode the text.
Résultat System.Linq

Property Details

DefaultDateTimeOffset public_oe static_oe property

Gets the default date time offset. E.g. for not existing files.
public static DateTimeOffset DefaultDateTimeOffset
Résultat DateTimeOffset

DefaultEncoding public_oe static_oe property

The default encoding.
public static Encoding,System.Text DefaultEncoding
Résultat System.Text.Encoding

NullObject public_oe static_oe property

The null object.
public static MockFileData,System.IO.Abstractions.TestingHelpers NullObject
Résultat MockFileData