Summary
Creates a file at the specified path.
- Namespace
- Cake
.Testing - Containing Type
- Fake
File System Extensions
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. |