Summary
Represents a fake directory.
- Namespace
- Cake
.Testing - Interfaces
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type-.->Interface0["IDirectory"]
click Interface0 "/api/Cake.Core.IO/IDirectory"
Type-.->Interface1["IFileSystemInfo"]
click Interface1 "/api/Cake.Core.IO/IFileSystemInfo"
Type["FakeDirectory"]
class Type type-node
Syntax
[DebuggerDisplay("{Path,nq}")]
public sealed class FakeDirectory : IDirectory, IFileSystemInfo
Attributes
Type | Description |
---|---|
Debugger |
Properties
Name | Value | Summary |
---|---|---|
Exists | bool |
Gets a value indicating whether this
IFileSystemInfo exists.
|
Hidden | bool |
Gets a value indicating whether this
IFileSystemInfo is hidden.
|
LastWriteTime | DateTime |
Gets the time when this
IFileSystemInfo was last written to.
|
Path | DirectoryPath |
Gets the path to the directory.
|
Methods
Name | Value | Summary |
---|---|---|
Create |
void |
Creates the directory.
|
Delete |
void |
Deletes the directory.
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope.
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
|
Move |
void |
Moves the directory to the specified destination path.
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
From DirectoryExtensions
|
GetDirectories |
IEnumerable |
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
From DirectoryExtensions
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
From DirectoryExtensions
|
GetFiles |
IEnumerable |
Gets files matching the specified filter and scope.
From DirectoryExtensions
|
Hide |
FakeDirectory |
Hides the specified directory.
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|