FakeFileSystemExtensions.

CreateFile(FakeFileSystem, FilePath, byte[]) Method

Summary

Creates a file at the specified path.
Namespace
Cake.Testing
Containing Type
FakeFileSystemExtensions

Syntax

public static FakeFile CreateFile(this FakeFileSystem fileSystem, FilePath path, byte[] contentsBytes)

Parameters

Name Type Description
fileSystem FakeFileSystem The file system.
path FilePath The path.
contentsBytes byte[] The file contents.

Return Value

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