FakeFileSystemExtensions.

CreateFile(FakeFileSystem, FilePath, FileAttributes) 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, FileAttributes attributes = None)

Parameters

Name Type Description
fileSystem FakeFileSystem The file system.
path FilePath The path.
attributes FileAttributes The file attributes to set.

Return Value

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