FakeFileExtensions.

SetContent(FakeFile, string) Method

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
SuppressMessageAttribute

Parameters

Name Type Description
file FakeFile The file.
content string The content.

Return Value

Type Description
FakeFile The same FakeFile instance so that multiple calls can be chained.