Summary
Gets the text content of the file.
- Namespace
- Cake
.Testing - Containing Type
- FakeFileExtensions
Syntax
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2202:Do not dispose objects multiple times")]
public static string GetTextContent(this FakeFile file, Encoding encoding)
Attributes
| Type | Description |
|---|---|
| Suppress |
Parameters
| Name | Type | Description |
|---|---|---|
| file | FakeFile | The file. |
| encoding | Encoding | The text encoding. |
Return Value
| Type | Description |
|---|---|
| string | The text content of the file. |
