FakeDirectory Class

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
DebuggerDisplayAttribute

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(bool) void
Deletes the directory.
GetDirectories(string, SearchScope) IEnumerable<IDirectory>
Gets directories matching the specified filter and scope.
GetFiles(string, SearchScope) IEnumerable<IFile>
Gets files matching the specified filter and scope.
Move(DirectoryPath) void
Moves the directory to the specified destination path.

Extension Methods

Name Value Summary
Dump<FakeDirectory>() string
Get a basic string representation of specified object.
Requires the Cake.Incubator addin
GetDirectories(string, SearchScope, Func<IFileSystemInfo, bool>, Action<IFileSystemInfo>) IEnumerable<IDirectory>
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
GetDirectories(string, SearchScope, Func<IFileSystemInfo, bool>) IEnumerable<IDirectory>
Gets directories matching the specified filter and scope, with option to exclude hidden directories.
GetFiles(string, SearchScope, Func<IFileSystemInfo, bool>, Action<IFileSystemInfo>) IEnumerable<IFile>
Gets files matching the specified filter and scope.
GetFiles(string, SearchScope, Func<IFileSystemInfo, bool>) IEnumerable<IFile>
Gets files matching the specified filter and scope.
Hide() FakeDirectory
Hides the specified directory.
IsIn<FakeDirectory>(FakeDirectory[]) bool
Checks if the source is contained in a list
Requires the Cake.Incubator addin
NotNull<FakeDirectory>(string) void
Throws an exception if the specified parameter's value is null.
Requires the Cake.Ftp addin
NotNull<FakeDirectory>(string) void
Requires the Cake.Issues addin
ThrowIfNull<FakeDirectory>(string, string) T
Throws a System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ThrowIfNull<FakeDirectory>(string) T
Throws a System.ArgumentNullException if the value is null, otherwise returns the value
Requires the Cake.Incubator addin
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Requires the Cake.Issues addin