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