FakeFileExtensions Class

Summary

Contains extensions for FakeFile.
Namespace
Cake.Testing
Base Types
  • object
graph BT Type-->Base0["object"] Type["FakeFileExtensions"] class Type type-node

Syntax

public static class FakeFileExtensions

Methods

Name Value Summary
GetBinaryContent(FakeFile) byte[]
Gets the binary content of the specified file.
static
GetTextContent(FakeFile, Encoding) string
Gets the text content of the file.
static
GetTextContent(FakeFile) string
Gets the text content of the file.
static
HasUTF8BOM(FakeFile) bool
Determines if a specified file has a UTF-8 BOM.
static
Hide(FakeFile) FakeFile
Hides the specified file.
static
SetContent(FakeFile, string) FakeFile
Sets the content of the provided file.
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin